Comment 12 for bug 530414

Revision history for this message
Mike Pontillo (mpontillo) wrote :

I, too, am having this problem with Lucid.

If I use OpenJDK, I get spam on the console saying:

$ eclipse
Apr 2, 2010 10:49:08 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Invalid argument
Apr 2, 2010 10:49:08 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request

This happens regardless of "-Djava.net.preferIPv4Stack=true" on OpenJDK.

If I try the Sun JDK using update-java-alternatives, I get:

No repository found at http://download.eclipse.org/galileo/releases/.

If I do this with the Sun JDK:

$ eclipse -Djava.net.preferIPv4Stack=true

... then everything seems to work..

Note, I have an IPv6 address on eth0 via a 6to4 tunnel on my router. I didn't try removing it. (I would have to both remove it and block IPv6 router advertisements from being processed by the kernel.)

It seems possible that OpenJDK doesn't like the java.net.preferIPv4Stack property, or it's not working correctly. I'm not sure if it's supported there.