Connection Time Out on executing the sample program on JOpenId

40 views
Skip to first unread message

CrazyKalai

unread,
Mar 1, 2011, 2:15:08 AM3/1/11
to JOpenID Discussion Group
Hi,

I have used the sample program as a stand alone and tried to execute
it. It ended up in the following exception at the point when it tries
to lookup for endpoint for the google. Got the same when used it with
Yahoo too. Can someone help me in this regards.

org.expressme.openid.OpenIdException: Request failed:
https://www.google.com/accounts/o8/id
at org.expressme.openid.Utils.httpRequest(Utils.java:83)
at
org.expressme.openid.OpenIdManager.requestEndpoint(OpenIdManager.java:
240)
at
org.expressme.openid.OpenIdManager.lookupEndpoint(OpenIdManager.java:
211)
at jopenid.sample.OpenIdServlet.main(OpenIdServlet.java:44)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:519)
at sun.net.NetworkClient.doConnect(NetworkClient.java:152)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:494)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:
278)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:
176)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:
769)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:
162)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:
133)
at org.expressme.openid.Utils.httpRequest(Utils.java:45)
... 3 more

Thanks,
Kalai
Reply all
Reply to author
Forward
0 new messages