It's pretty difficult to say, but for some reason the SSL library has trouble generating a new secure random value. This is a question for the JSSE implementor (Sun in this case).
Mike On 5/6/05, xhu1 <[EMAIL PROTECTED]> wrote: > there is no problem connecting it with browser, also > from my code not everytime fails, only falis sometime. > Thanks. > > --- Gustavo Hexsel <[EMAIL PROTECTED]> wrote: > > What happens if you connect to it using a browser? > > > > []s Gus > > > > > > -----Original Message----- > > From: xhu1 [mailto:[EMAIL PROTECTED] > > Sent: May 6, 2005 11:15 AM > > To: [email protected] > > 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: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > Discover Yahoo! > Get on-the-go sports scores, stock quotes, news and more. Check it out! > http://discover.yahoo.com/mobile.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
