Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » how to solve SocketTimeoutException (getting SocketTimeoutException when installing features using p2 standalone applicatioon )
how to solve SocketTimeoutException [message #666428] Wed, 20 April 2011 12:56
Jann Schneider is currently offline Jann SchneiderFriend
Messages: 4
Registered: July 2009
Junior Member
Hello

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 Smile

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!
Jann

Previous Topic:How do I consume a DS?
Next Topic:Equinox Aspects not functioning as documented
Goto Forum:
  


Current Time: Thu Apr 25 05:28:54 GMT 2024

Powered by FUDForum. Page generated in 0.02684 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top