Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse-dev] No access to the proxy on my Eclipse product

Hi,

 

I created a product based on org.eclipse.ui.ide.workbench with CDT features and with my plugins.

When I used my product with my plugins, a specific download fails.

When I used an EclipseCDT with my plugins, it works.

 

I’ve add this to log what happened:

 

public static void testProxy(){

              try {

            System.setProperty("java.net.useSystemProxies","true");

            List<Proxy> l = ProxySelector.getDefault().select(

                        new URI("http://www.yahoo.com/"));

 

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

 

                Proxy proxy = iter.next();

 

                CUIPlugin.getDefault().logError("proxy hosttype : " + proxy.type());

 

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

 

                if(addr == null) {

 

                     CUIPlugin.getDefault().logError("No Proxy");

 

                } else {

                     CUIPlugin.getDefault().logError("proxy hostname : " + addr.getHostName());

                     CUIPlugin.getDefault().logError("proxy port : " + addr.getPort());

                }

            }

        } catch (Exception e) {

            e.printStackTrace();

        }

 

       }

 

and where it works :

!ENTRY org.eclipse.cdt.ui 4 4 2016-02-05 09:50:36.422

!MESSAGE proxy hostname : HTTP

 

!ENTRY org.eclipse.cdt.ui 4 4 2016-02-05 09:50:40.940

!MESSAGE proxy hostname : 172.29.52.166

 

!ENTRY org.eclipse.cdt.ui 4 4 2016-02-05 09:50:40.940

!MESSAGE proxy port : 80

 

But where it fails :

!ENTRY org.eclipse.cdt.ui 4 4 2016-02-05 14:16:56.174

!MESSAGE proxy hosttype : DIRECT

 

!ENTRY org.eclipse.cdt.ui 4 4 2016-02-05 14:16:56.176

!MESSAGE No Proxy

 

I’ve compared the preferences of the two eclipse.exe but it seems to be identical … even the Network Connections.

 

Do you have any idea of what happened in my product ?

 

Thank you

Christelle

 


Back to the top