Timeout problem

455 views
Skip to first unread message

Daniel Koller

unread,
Oct 29, 2008, 1:36:50 PM10/29/08
to esme...@googlegroups.com

Hi,

after replacing the openid library, i get a timeout when accessing the openid provider:
---
INFO - No OpenID service endpoints discovered through Yadis; attempting HTML discovery...
INFO - Request /user_mgt/login took 10000 query
INFO - Service request (POST) /esme/user_mgt/login took 10000 Milliseconds
INFO - Request /comet_request/D438CAA090900C7F27D9344E9F90A586 took 9891 query
INFO - Service request (GET) /esme/comet_request/D438CAA090900C7F27D9344E9F90A586 took 9891 Milliseconds
INFO - Service request (GET) /esme/user_mgt/login took 0 Milliseconds
INFO - Creating openId auth request.  returnToUrl: http://139.25.152.80:8080/esme/openid/response
INFO - Starting discovery on URL identifier: http://dakoller.myopenid.com/
WARN - Yadis discovery failed on http://dakoller.myopenid.com/ : 1796: I/O transport error:
org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 5000 ms
 at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155)
 at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
 at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
 at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
 at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
 at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
 at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
 ...
 at net.liftweb.http.URLRewriter$.doWith(RequestState.scala:341)
 at net.liftweb.http.LiftFilter.doFilter(LiftServlet.scala:475)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: connect timed out
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(Unknown Source)
 at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
 ... 83 more
INFO - No OpenID service endpoints discovered through Yadis; attempting HTML discovery...
INFO - Request /user_mgt/login took 10000 query
INFO - Service request (POST) /esme/user_mgt/login took 10000 Milliseconds
INFO - Service request (GET) /esme/user_mgt/login took 0 Milliseconds
---
As this timeout can have many reasons, is there a convenient way to perform diagnosis, where the problem happens... or did anybody have already this problem?

Kind regards,

Daniel

David Pollak

unread,
Oct 29, 2008, 2:12:45 PM10/29/08
to esme...@googlegroups.com
It looks like the following line tells all:
org.apache.commons.httpclient.

ConnectTimeoutException: The host did not accept the connection within timeout of 5000 ms


Are you running behind a firewall that requires an HTTP proxy to talk to the outside world?

--
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

Hirsch, Richard

unread,
Oct 29, 2008, 2:49:39 PM10/29/08
to esme...@googlegroups.com
Yes. Daniel is working behind the firewall.

D.

________________________________
Lift, the simply functional web framework http://liftweb.net <http://liftweb.net/>
Collaborative Task Management http://much4.us <http://much4.us/>
winmail.dat

Hirsch, Richard

unread,
Oct 29, 2008, 2:50:36 PM10/29/08
to esme...@googlegroups.com
My message was cut off.

Yes. Daniel is running behind a firewall that requires an HTTP proxy to talk to the outside world?

D.

________________________________

From: esme...@googlegroups.com on behalf of David Pollak
Sent: Wed 10/29/2008 19:12
To: esme...@googlegroups.com
Subject: [ESME-dev] Re: Timeout problem


Lift, the simply functional web framework http://liftweb.net <http://liftweb.net/>
Collaborative Task Management http://much4.us <http://much4.us/>
winmail.dat

Dick Hirsch

unread,
Oct 30, 2008, 9:58:20 AM10/30/08
to esme-dev

Could the problem/solution be the same one that was described here:
http://groups.google.com/group/esme-dev/msg/426098a02d12aa6e?hl=en

D.

David Pollak

unread,
Oct 30, 2008, 11:13:29 AM10/30/08
to esme...@googlegroups.com
Yes, the proxy has to be set correctly.

I am waiting for DavidB to get OpenID4Java on Maven then I'll do the upgrade and testing.

I'll also work on putting together a virtual machine that's behind a virtual firewall/http proxy so we can test this configuration.
--
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Reply all
Reply to author
Forward
0 new messages