Bug 272813 - [Net] Proxy not working anymore since 3.5M6 - Update impossible
Summary: [Net] Proxy not working anymore since 3.5M6 - Update impossible
Status: RESOLVED DUPLICATE of bug 273211
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Pawel Pogorzelski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-18 18:54 EDT by Henning Riedel CLA
Modified: 2009-05-06 03:55 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Riedel CLA 2009-04-18 18:54:53 EDT
Build ID: 3.5M6 I20090313-0100

Steps To Reproduce:
Well, I use the Eclipse SDK 3.5M6 zip file and unpacked locally.
I set up the 'Manual' HTTP/HTTPS proxy (host/port) under Window->Preferences->'Network Connections'.
Then I go to Help->'Install New Software...', add an update site, it starts searching, but stops with an error dialog popping up, which states 'No repository found at <name_an_updatesite_here>'.
So, the only thing I currently can update are with local archives or copying plugins into plugins/features, but nothing from an update-site.

In the <workspace_loc>/.metadata/.log I have several entries like:

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property http.proxyHost is not set but should be <proxy_host>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property http.proxyPort is not set but should be <proxy_port>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property https.proxyHost is not set but should be <proxy_host>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property https.proxyPort is not set but should be <proxy_port>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property socksProxyHost is not set but should be <proxy_host>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property socksProxyPort is not set but should be <proxy_port>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property https.proxyHost is not set but should be <proxy_host>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property https.proxyPort is not set but should be <proxy_port>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property socksProxyHost is not set but should be <proxy_host>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property socksProxyPort is not set but should be <proxy_port>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property socksProxyHost is not set but should be <proxy_host>.

!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property socksProxyPort is not set but should be <proxy_port>.

Where <proxy_host> and <proxy_port> are the settings as entered in the dialog.
If I add -Dhttp.proxyHost=<proxy_host> and -Dhttp.ProxyPort=<proxy_port> in the eclipse.ini file, I get a different message in the .log file, stating, that the systemm property was set and is changed to the setting from the preferences dialog.


More information:
Comment 1 Pawel Pogorzelski CLA 2009-04-20 04:54:53 EDT
If possible please provide details about your proxy settings you enter in the Eclipse (for all schemas). I'm particularly interested in the fact if you use schema in front of the host. Does your proxy server require authentication?

Messages like:
"!ENTRY org.eclipse.core.net 1 0 2009-04-16 18:12:18.427
!MESSAGE System property socksProxyHost is not set but should be <proxy_host>."
are written to error log in case you have manual proxy settings and your Eclipse starts having system properties cleared. They do not signalize a problem.

To see what system properties are set in the JVM you can launch Eclipse with the "-console" switch. It will give you the access the OSGi console, just type "props" in it. Could you confirm that when Eclipse is trying to install new software proxy properties are not set? If possible please put on the bug report all the properties that have "proxy" in the key.
Comment 2 Henning Riedel CLA 2009-04-21 21:24:23 EDT
Well, I add just the proxy info but without protocol, like this for HTTP:

host: proxy.company.xy.de 
port: 90

I did not enter this:

host: http://proxy.company.xy.de 
port: 90

The dialog does not really state to add the protocol infront of it.
The proxy is the same for HTTP and HTTPS, I'm not sure if SOCKS is supported.
AFAIK, the proxy does not require to authenticate, at least it did not when I use Eclipse 3.5M5 or 3.4.2.

Tomorrow, I'll try adding the protocol and verify the -console stuff.
Comment 3 Pawel Pogorzelski CLA 2009-04-22 02:22:37 EDT
Yes, the dialog doesn't allow to enter proxy with a schema. This is a feature introduced with bug 265277 because protocol name causes problems. However if you had preferences from some previous version of Eclipse and upgraded the installation you could have an entry with a schema. I just wanted to clear that.

Waiting for the properties to investigate the problem further.
Comment 4 Henning Riedel CLA 2009-04-24 09:43:37 EDT
Ok, kinda long, but I just paste in here

osgi> props
System properties:
 awt.toolkit = sun.awt.windows.WToolkit
 eclipse.buildId = I20090313-0100
 eclipse.commands = -os
win32
-ws
win32
-arch
x86
-showsplash
D:\eclipse-SDK-3.5M6-win32\eclipse\\plugins\org.eclipse.platform_3.3.200.v200903130100\splash.bmp
-launcher
D:\eclipse-SDK-3.5M6-win32\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
D:\eclipse-SDK-3.5M6-win32\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090306-1900\eclipse_1
200.dll
-startup
D:\eclipse-SDK-3.5M6-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090306-1900.jar
-console
-vm
C:\Program Files\JAVA\jre1.6.0\bin\client\jvm.dll

 eclipse.home.location = file:/D:/eclipse-SDK-3.5M6-win32/eclipse/
 eclipse.launcher = D:\eclipse-SDK-3.5M6-win32\eclipse\eclipse.exe
 eclipse.p2.data.area = @config.dir/../p2/
 eclipse.p2.profile = SDKProfile
 eclipse.product = org.eclipse.sdk.ide
 eclipse.startTime = 1240579906201
 eclipse.vm = C:\Program Files\JAVA\jre1.6.0\bin\client\jvm.dll
 eclipse.vmargs = -Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Djava.class.path=D:\eclipse-SDK-3.5M6-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090306-1900.jar

 file.encoding = Cp1252
 file.encoding.pkg = sun.io
 file.separator = \
 http.nonProxyHosts = localhost|127.0.0.1
 http.proxyHost = proxy.mycompany.de
 http.proxyPort = 81
 http.proxySet = true
 https.nonProxyHosts = localhost|127.0.0.1
 https.proxyHost = proxy.mycompany.de
 https.proxyPort = 81
 https.proxySet = true
 java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
 java.awt.printerjob = sun.awt.windows.WPrinterJob
 java.class.path = D:\eclipse-SDK-3.5M6-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090306-1900.jar
 java.class.version = 50.0
 java.endorsed.dirs = C:\Program Files\JAVA\jre1.6.0\lib\endorsed
 java.ext.dirs = C:\Program Files\JAVA\jre1.6.0\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
 java.home = C:\Program Files\JAVA\jre1.6.0
 java.io.tmpdir = C:\DOCUME~1\myuserid\LOCALS~1\Temp\
 java.library.path = D:\eclipse-SDK-3.5M6-win32\eclipse;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Prog
ram Files/JAVA/jre1.6.0/bin/client;C:/Program Files/JAVA/jre1.6.0/bin;d:\gcc-4.3.3\bin;C:\Win16App\mks\IntegrityClient\bin;C:\Program Files\CatPC\Bin;C:\Program Files\CatPC\Windows\System32;C:\Perl\bin;C:\win16app\Perl\bin;C:
\win16app\mks\bin;C:\win16app\mks\bin\X11;C:\win16app\mks\mksnt;C:\Win16App\Oracle\ora92\bin;C:\Program Files\Oracle\jre
\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\VXIP
NP\WinNT\Bin;C:\Win16App\Agilent\IVI Foundation\IVI\bin;C:\Win16App\Agilent\IO Libraries Suite\bin;C:\VXIPNP\WinNT\Bin\;
C:\VXIPNP\winnt\agvisa;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:/W
in16App/bin;D:\Win16App\ATT\Graphviz\bin;D:\Win16App\ATT\Graphviz\bin\tools;D:\win16app\doxygen\bin;C:\Win16App\TortoiseSVN\bin
 java.runtime.name = Java(TM) SE Runtime Environment
 java.runtime.version = 1.6.0-b105
 java.specification.name = Java Platform API Specification
 java.specification.vendor = Sun Microsystems Inc.
 java.specification.version = 1.6
 java.vendor = Sun Microsystems Inc.
 java.vendor.url = http://java.sun.com/
 java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
 java.version = 1.6.0
 java.vm.info = mixed mode
 java.vm.name = Java HotSpot(TM) Client VM
 java.vm.specification.name = Java Virtual Machine Specification
 java.vm.specification.vendor = Sun Microsystems Inc.
 java.vm.specification.version = 1.0
 java.vm.vendor = Sun Microsystems Inc.
 java.vm.version = 1.6.0-b105
 line.separator =

 org.eclipse.equinox.launcher.splash.location = D:\eclipse-SDK-3.5M6-win32\eclipse\\plugins\org.eclipse.platform_3.3.200
.v200903130100\splash.bmp
 org.eclipse.equinox.simpleconfigurator.configUrl = file:org.eclipse.equinox.simpleconfigurator/bundles.info
 org.eclipse.update.reconcile = false
 org.osgi.framework.executionenvironment = OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,
J2SE-1.4,J2SE-1.5,JavaSE-1.6
 org.osgi.framework.language = de
 org.osgi.framework.os.name = WindowsXP
 org.osgi.framework.os.version = 5.1.0
 org.osgi.framework.processor = x86
 org.osgi.framework.system.packages = javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotat
ion.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.me
tadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.s
oap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.managem
ent.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,ja
vax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.namin
g.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribu
te.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.au
th.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,java
x.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,ja
vax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorch
ooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swi
ng.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.pars
er,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,j
avax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.help
ers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.
crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,j
avax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.tran
sform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,jav
ax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.ws.wsaddressing,javax.xml.xpath,or
g.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPack
age,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org
.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.D
ynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.P
ortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentP
ackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.om
g.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,or
g.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.
traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
 org.osgi.framework.vendor = Eclipse
 org.osgi.framework.version = 1.5.0
 org.osgi.supports.framework.extension = true
 org.osgi.supports.framework.fragment = true
 org.osgi.supports.framework.requirebundle = true
 os.arch = x86
 os.name = Windows XP
 os.version = 5.1
 osgi.arch = x86
 osgi.bundles = reference:file:org.eclipse.equinox.simpleconfigurator_1.0.100.v20090308-0011.jar@1:start
 osgi.bundles.defaultStartLevel = 4
 osgi.bundlestore = D:\eclipse-SDK-3.5M6-win32\eclipse\configuration\org.eclipse.osgi\bundles
 osgi.configuration.area = file:/D:/eclipse-SDK-3.5M6-win32/eclipse/configuration/
 osgi.console =
 osgi.framework = file:/d:/eclipse-SDK-3.5M6-win32/eclipse/plugins/org.eclipse.osgi_3.5.0.v20090311-1300.jar
 osgi.framework.shape = jar
 osgi.framework.version = 3.5.0.v20090311-1300
 osgi.install.area = file:/D:/eclipse-SDK-3.5M6-win32/eclipse/
 osgi.instance.area = file:/D:/eclipse-SDK-3.5M6-win32/workspace/
 osgi.instance.area.default = file:/C:/Documents and Settings/myuserid/workspace/
 osgi.logfile = D:\eclipse-SDK-3.5M6-win32\workspace\.metadata\.log
 osgi.manifest.cache = D:\eclipse-SDK-3.5M6-win32\eclipse\configuration\org.eclipse.osgi\manifests
 osgi.nl = de_DE
 osgi.os = win32
 osgi.splashLocation = D:\eclipse-SDK-3.5M6-win32\eclipse\\plugins\org.eclipse.platform_3.3.200.v200903130100\splash.bmp

 osgi.splashPath = platform:/base/plugins/org.eclipse.platform
 osgi.syspath = d:\eclipse-SDK-3.5M6-win32\eclipse\plugins
 osgi.tracefile = D:\eclipse-SDK-3.5M6-win32\workspace\.metadata\trace.log
 osgi.ws = win32
 path.separator = ;
 socksProxyHost = proxy.mycompany.de
 socksProxyPort = 81
 sun.arch.data.model = 32
 sun.boot.class.path = C:\Program Files\JAVA\jre1.6.0\lib\resources.jar;C:\Program Files\JAVA\jre1.6.0\lib\rt.jar;C:\Pro
gram Files\JAVA\jre1.6.0\lib\sunrsasign.jar;C:\Program Files\JAVA\jre1.6.0\lib\jsse.jar;C:\Program Files\JAVA\jre1.6.0\l
ib\jce.jar;C:\Program Files\JAVA\jre1.6.0\lib\charsets.jar;C:\Program Files\JAVA\jre1.6.0\classes
 sun.boot.library.path = C:\Program Files\JAVA\jre1.6.0\bin
 sun.cpu.endian = little
 sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
 sun.desktop = windows
 sun.io.unicode.encoding = UnicodeLittle
 sun.jnu.encoding = Cp1252
 sun.management.compiler = HotSpot Client Compiler
 sun.os.patch.level = Service Pack 2
 user.country = DE
 user.dir = D:\eclipse-SDK-3.5M6-win32\eclipse
 user.home = C:\Documents and Settings\myuserid
 user.language = de
 user.name = myuserid
 user.timezone = Europe/Berlin
 user.variant =


osgi>
Comment 5 Pawel Pogorzelski CLA 2009-04-24 10:03:43 EDT
Seems like proxy settings are handled the way they should be.

Could you reach something else via that proxy from within Eclipse? If possible please try connecting a CVS repository and a website using an internal browser. Thanks.
Comment 6 Pawel Pogorzelski CLA 2009-04-24 10:55:18 EDT
Adding Pascal to the CC list to comment.
Comment 7 Pawel Pogorzelski CLA 2009-04-30 05:24:46 EDT
Are you able to connect to a CVS repository via that proxy using Eclipse CVS client? And what about using the internal Eclipse browser? I need this information to narrow the potential cause.
Comment 8 Henning Riedel CLA 2009-05-05 08:12:08 EDT
Sorry for the week delay (vacation).

Well, the Internal Webbrowser does show me websites. The question is, does it use IExplorer or not?

On the other side, using :pserver:anonymous:dev.eclipse.org:/cvsroot/tools  gives me a timeout. The error message is:

-------
Error validating location: "Could not connect to :pserver:anonymous:dev.eclipse.org:/cvsroot/tools: I/O exception occured: ProxySOCKS5: java.net.SocketTimeoutException: Read timed out"
Keep location anyway?
-------

There is no info in the .metadata/.log.
Comment 9 Pawel Pogorzelski CLA 2009-05-05 09:14:55 EDT
Please clear entry for SOCKS and try again.
Comment 10 Henning Riedel CLA 2009-05-05 13:59:28 EDT
That seems to be the problem!

Clearing the SOCKS settings brings this back to work. 
Thanks.
Comment 11 Pawel Pogorzelski CLA 2009-05-06 03:55:34 EDT

*** This bug has been marked as a duplicate of bug 273211 ***