United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6385839 Add KDE support to ProxySelector
6385839 : Add KDE support to ProxySelector

Details
Type:
Enhancement
Submit Date:
2006-02-15
Status:
Open
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
Component:
core-libs
OS:
linux
Sub-Component:
java.net
CPU:
x86
Priority:
P4
Resolution:
Unresolved
Affected Versions:
5.0
Targeted Versions:

Related Reports

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
and 1.5.0_06

ADDITIONAL OS VERSION INFORMATION :
Linux Fedora Core 4

A DESCRIPTION OF THE PROBLEM :
If you compile and run the following code, it works fine in windows but in Linux, it cannot detect the proxy host/port.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just compile and run the above code in a network setting where there is proxy set.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
proxy hostname : DIRECT

ACTUAL -
proxy hostname : DIRECT
No Proxy

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.util.*;
import java.net.*;

public class testProxy {

    public static void main(String[] args) {
        try {

            System.setProperty("java.net.useSystemProxies","true");
            List l = ProxySelector.getDefault().select(
                        new URI("http://www.yahoo.com/"));

            for (Iterator iter = l.iterator(); iter.hasNext(); ) {

                Proxy proxy = (Proxy) iter.next();

                System.out.println("proxy hostname : " + proxy.type());

                InetSocketAddress addr = (InetSocketAddress)
                    proxy.address();

                if(addr == null) {

                    System.out.println("No Proxy");

                } else {

                    System.out.println("proxy hostname : " +
                            addr.getHostName());

                    System.out.println("proxy port : " +
                            addr.getPort());

                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
---------- END SOURCE ----------

                                    

Comments
EVALUATION

Got confirmation that this was a KDE issue which is not supported yet.
This is a desirable feature though, since KDE is widely used, but will require some efforts.
Will try to get this done for Dolphin, meanwhile I'm changing this to an RFE.
                                     
2006-02-20
EVALUATION

We need a bit more details to diagnose this. In particular, the system proxies under Linux are only supported for the Gnome environment, not KDE (yet). Also, there was a known bug that we fixed recently where the gconf libraries would fail to load if they were not in /usr/lib, which would be the case on 64 bits distributions.
So could you tell us more details about the Linux environment where this issue shows up?
                                     
2006-02-15



Hardware and Software, Engineered to Work Together