You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by xhu1 <xh...@yahoo.com> on 2005/05/06 19:15:29 UTC

connection timeout

Hi,
I am using httpclient 2.0.2, and I have set
client.setConnectionTimeout(30000);
client.setTimeout(30000);

when I test with my test box I got exception couple
times. The first time I remember it said something
like $ConnectionTimeoutException, now I got:

2005-05-06 08:37:42,437 WARN  [ExecuteThread: '7' for
queue: 'default'] (HttpCon
nection.java:711) - The host testing.mydomain.com:443
(or proxy null:-1)
 did not accept the connection within timeout of 30000
milliseconds
java.lang.InternalError: internal error: SeedGenerator
thread generated an excep
tion.
        at
sun.security.provider.SeedGenerator._getByte(SeedGenerator.java:173)
        at
sun.security.provider.SeedGenerator.getByte(SeedGenerator.java:159)
        at
sun.security.provider.SecureRandom.engineGenerateSeed(SecureRandom.ja
va:112)
        at
sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:
170)
        at
java.security.SecureRandom.nextBytes(SecureRandom.java:324)
        at
java.security.SecureRandom.next(SecureRandom.java:346)
        at java.util.Random.nextInt(Random.java:176)
        at
com.sun.net.ssl.internal.ssl.SSLContextImpl.engineInit(DashoA6275)
        at
com.sun.net.ssl.internal.ssl.SSLContextImpl$1.run(DashoA6275)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
com.sun.net.ssl.internal.ssl.SSLContextImpl.d(DashoA6275)
        at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.<init>(DashoA6275)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:232)
        at
javax.net.ssl.SSLSocketFactory.getDefault(DashoA6275)
        at
org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat
eSocket(SSLProtocolSocketFactory.java:93)
        at
org.apache.commons.httpclient.HttpConnection$1.doit(HttpConnection.ja
va:660)
        at
org.apache.commons.httpclient.HttpConnection$SocketTask.run(HttpConne
ction.java:1291)
        at java.lang.Thread.run(Thread.java:479)
org.apache.commons.httpclient.HttpConnection$ConnectionTimeoutException
        at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java
:716)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:628)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:497)

is there anything wrong? is 30 sec too short? I use it
inside ejb so it causes the ejb timeout too. 
Thanks


		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: connection timeout

Posted by Roland Weber <RO...@de.ibm.com>.
Hello,

maybe it has something to do with this?
http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200504.mbox/%3c200504211333.33235.lists@thesearchagency.com%3e

cheers,
  Roland




xhu1 <xh...@yahoo.com> 
06.05.2005 19:15
Please respond to
"HttpClient User Discussion"


To
httpclient-user@jakarta.apache.org
cc

Subject
connection timeout






Hi,
I am using httpclient 2.0.2, and I have set
client.setConnectionTimeout(30000);
client.setTimeout(30000);

when I test with my test box I got exception couple
times. The first time I remember it said something
like $ConnectionTimeoutException, now I got:

2005-05-06 08:37:42,437 WARN  [ExecuteThread: '7' for
queue: 'default'] (HttpCon
nection.java:711) - The host testing.mydomain.com:443
(or proxy null:-1)
 did not accept the connection within timeout of 30000
milliseconds
java.lang.InternalError: internal error: SeedGenerator
thread generated an excep
tion.
        at
sun.security.provider.SeedGenerator._getByte(SeedGenerator.java:173)
        at
sun.security.provider.SeedGenerator.getByte(SeedGenerator.java:159)
        at
sun.security.provider.SecureRandom.engineGenerateSeed(SecureRandom.ja
va:112)
        at
sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:
170)
        at
java.security.SecureRandom.nextBytes(SecureRandom.java:324)
        at
java.security.SecureRandom.next(SecureRandom.java:346)
        at java.util.Random.nextInt(Random.java:176)
        at
com.sun.net.ssl.internal.ssl.SSLContextImpl.engineInit(DashoA6275)
        at
com.sun.net.ssl.internal.ssl.SSLContextImpl$1.run(DashoA6275)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
com.sun.net.ssl.internal.ssl.SSLContextImpl.d(DashoA6275)
        at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.<init>(DashoA6275)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:232)
        at
javax.net.ssl.SSLSocketFactory.getDefault(DashoA6275)
        at
org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.creat
eSocket(SSLProtocolSocketFactory.java:93)
        at
org.apache.commons.httpclient.HttpConnection$1.doit(HttpConnection.ja
va:660)
        at
org.apache.commons.httpclient.HttpConnection$SocketTask.run(HttpConne
ction.java:1291)
        at java.lang.Thread.run(Thread.java:479)
org.apache.commons.httpclient.HttpConnection$ConnectionTimeoutException
        at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java
:716)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:628)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:497)

is there anything wrong? is 30 sec too short? I use it
inside ejb so it causes the ejb timeout too. 
Thanks


 
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org