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.
I, too, am having this problem with Lucid.
If I use OpenJDK, I get spam on the console saying:
$ eclipse commons. httpclient. HttpMethodDirec tor executeWithRetry ConnectExceptio n) caught when processing request: Invalid argument commons. httpclient. HttpMethodDirec tor executeWithRetry
Apr 2, 2010 10:49:08 PM org.apache.
INFO: I/O exception (java.net.
Apr 2, 2010 10:49:08 PM org.apache.
INFO: Retrying request
This happens regardless of "-Djava. net.preferIPv4S tack=true" on OpenJDK.
If I try the Sun JDK using update- java-alternativ es, I get:
No repository found at http:// download. eclipse. org/galileo/ releases/.
If I do this with the Sun JDK:
$ eclipse -Djava. net.preferIPv4S tack=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.