|how to solve SocketTimeoutException [message #666428]
||Wed, 20 April 2011 08:56
| Jann Schneider
Registered: July 2009
i try to install several features into an existing eclipse installation using the p2 director (standalone) application. In some cases i get a SocketTimeoutException. In detail it says "Unable to read repository at ..." and "caused by java.net.SocketTimeoutException ... read timed out"
But this only occurs on our companies build server not on my workstation or notebook. Thats why i think it's some setting which is wrong there. When i use the same repository urls on my workstation / notebook i can install the features as well from the command line directly as inside the IDE without setting any timeout or such things.
What i tried: because the build server is behind a firewall (but not any proxy) i tried to get the jars via wget. That worked fine. But it looks like the request is send, then it takes a while and then the whole file is comming over at once. So maybe the firewall is doing some virus checks on the download before handing it over to my server.
What i tried: i am issueing the command
sh ./director -d /path/to/eclipse/ -i the.iu.feature.group -r "http://mirror.netcologne.de/eclipse/releases/helios/, Specific.repo.for.the.current.feature" -consolelog
The mirror is just because i am sitting in germany and this one is much faster than the download.eclipse.org site. I use it to resolve possible dependencies.
Now i tried to increase the defaults for read and connect timeout by adding:
-vmargs -Dorg.eclipse.ecf.provider.filetransfer.httpclient.retrieve. readTimeout=300000 -Dorg.eclipse.ecf.provider.filetransfer.httpclient.retrieve. connectTimeout=300000 -Dsun.net.client.defaultReadTimeout=300000
I guess the latter doesn't affect anything but tried it anyway
Unfortunately these options didn't solve the issue.
I guess there are some more things i currently don't now or think of which i could try to get it working?
Pls let me know if you need some more information.
Thanks in advance!
Powered by FUDForum
. Page generated in 0.01651 seconds