5 Replies Latest reply on Dec 18, 2008 5:07 AM by Ronald van Kuijk

    Testing OpenId from localhost

    Dave Everson Newbie

      Hello,


      I am seeking any advice on testing OpenId from localhost.  I am developing on a residential ISP (Comcast Cable) via a wireless router (DLink).  I am using Windows Vista and Seam 2.1.1CR1. I am testing with MyOpenID .


      After performing the configuration in the documentation, I submit my openid credential and receive the following error:



      2008-12-14 00:13:54,226 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [STDOUT] return to http://localhost:443/a/openid.seam
      2008-12-14 00:13:54,243 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.discovery.Discovery] Starting discovery on URL identifier: http://mb.myopenid.com/
      2008-12-14 00:13:54,775 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.discovery.yadis.YadisResolver] Yadis discovery succeeded on http://mb.myopenid.com/
      2008-12-14 00:13:54,781 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.discovery.Discovery] Using Yadis normalized URL as claimedID: http://mb.myopenid.com/
      2008-12-14 00:13:54,790 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.discovery.Discovery] Discovered 3 OpenID endpoints.
      2008-12-14 00:13:54,797 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.consumer.ConsumerManager] Trying to associate with http://www.myopenid.com/server attempts left: 4
      2008-12-14 00:13:54,802 WARN  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.consumer.ConsumerManager] Could not create association of type: no-encryption:HMAC-SHA1:OpenID2
      2008-12-14 00:13:54,803 WARN  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.consumer.ConsumerManager] Could not create association of type: no-encryption:HMAC-SHA256:OpenID2
      2008-12-14 00:13:55,444 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.consumer.ConsumerManager] Associated with http://www.myopenid.com/server handle: {HMAC-SHA256}{49444fc3}{F3YYFw==}
      2008-12-14 00:13:55,447 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.consumer.ConsumerManager] Trying to associate with http://www.myopenid.com/server attempts left: 4
      2008-12-14 00:13:55,448 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.consumer.ConsumerManager] Found an existing association.
      2008-12-14 00:13:55,449 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.consumer.ConsumerManager] Creating authentication request for OP-endpoint: http://www.myopenid.com/server claimedID: http://mb.myopenid.com/ OP-specific ID: http://mb.myopenid.com/
      2008-12-14 00:13:55,463 INFO  [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.server.RealmVerifier] Return URL: http://localhost:443/a/openid.seam matches realm: http://localhost:443/a/openid.seam
      2008-12-14 00:13:55,481 ERROR [] [127.0.0.1] [207115E54EF5C7F67E95584775034F36] [org.openid4java.discovery.yadis.YadisResolver] HTTP error during HEAD request on: http://localhost:443/a/openid.seam
      org.apache.commons.httpclient.ProtocolException: The server localhost failed to respond with a valid HTTP response
      



      Any advice would be greatly appreciated.
      Thanks!

        • 1. Re: Testing OpenId from localhost
          Ronald van Kuijk Apprentice

          Set the loglevel to debug and send the output. This is to little information for me to be able to help you.

          • 2. Re: Testing OpenId from localhost
            Ronald van Kuijk Apprentice

            The loglevel of httpclient I mean...


            oh... btw, I think I already see an error.... the url is http://localhost:443/a/openid.seam .... that combination (http and 443) is invalid... try it in your browser. It shoud be https

            • 3. Re: Testing OpenId from localhost
              Dave Everson Newbie

              I have changed the debug level of httpclient to debug.  The resulting stacktrace is below.
              I tried accessing the openidLogin page using https.  Even when I do this, the error message references http and 443.  I really have no idea where this is coming from or where I should configure this at.


              I attempted to include the entire stacktrace, but got an error about too much context.  I removed some of the traces related to the NPE.


              Thanks for your time!


              2008-12-14 19:14:13,753 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDOUT] return to http://localhost:443/a/openid.seam
              2008-12-14 19:14:13,770 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.discovery.Discovery] Starting discovery on URL identifier: http://mb.myopenid.com/
              2008-12-14 19:14:13,773 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.max-redirects = 10
              2008-12-14 19:14:13,773 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.allow-circular-redirects = true
              2008-12-14 19:14:13,773 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.socket.timeout = 3000
              2008-12-14 19:14:13,773 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.connection.timeout = 5000
              2008-12-14 19:14:13,773 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.cookie-policy = ignoreCookies
              2008-12-14 19:14:13,852 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] HttpConnectionManager.getConnection:  config = HostConfiguration[host=http://mb.myopenid.com], timeout = 0
              2008-12-14 19:14:13,859 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Allocating new connection, hostConfig=HostConfiguration[host=http://mb.myopenid.com]
              2008-12-14 19:14:13,880 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Open connection to mb.myopenid.com:80
              2008-12-14 19:14:13,969 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header
              2008-12-14 19:14:14,151 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Should close connection in response to directive: close
              2008-12-14 19:14:14,154 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Releasing connection back to connection manager.
              2008-12-14 19:14:14,156 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Freeing connection, hostConfig=HostConfiguration[host=http://mb.myopenid.com]
              2008-12-14 19:14:14,158 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.util.IdleConnectionHandler] Adding connection at: 1229282054158
              2008-12-14 19:14:14,159 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Notifying no-one, there are no waiting threads
              2008-12-14 19:14:14,165 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] HttpConnectionManager.getConnection:  config = HostConfiguration[host=http://mb.myopenid.com], timeout = 0
              2008-12-14 19:14:14,165 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Getting free connection, hostConfig=HostConfiguration[host=http://mb.myopenid.com]
              2008-12-14 19:14:14,166 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Open connection to mb.myopenid.com:80
              2008-12-14 19:14:14,231 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header
              2008-12-14 19:14:14,336 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Should close connection in response to directive: close
              2008-12-14 19:14:14,336 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Releasing connection back to connection manager.
              2008-12-14 19:14:14,336 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Freeing connection, hostConfig=HostConfiguration[host=http://mb.myopenid.com]
              2008-12-14 19:14:14,336 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.util.IdleConnectionHandler] Adding connection at: 1229282054336
              2008-12-14 19:14:14,336 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Notifying no-one, there are no waiting threads
              2008-12-14 19:14:14,355 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.discovery.yadis.YadisResolver] Yadis discovery succeeded on http://mb.myopenid.com/
              2008-12-14 19:14:14,356 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.discovery.Discovery] Using Yadis normalized URL as claimedID: http://mb.myopenid.com/
              2008-12-14 19:14:14,364 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.discovery.Discovery] Discovered 3 OpenID endpoints.
              2008-12-14 19:14:14,372 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.consumer.ConsumerManager] Trying to associate with http://www.myopenid.com/server attempts left: 4
              2008-12-14 19:14:14,377 WARN  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.consumer.ConsumerManager] Could not create association of type: no-encryption:HMAC-SHA1:OpenID2
              2008-12-14 19:14:14,378 WARN  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.consumer.ConsumerManager] Could not create association of type: no-encryption:HMAC-SHA256:OpenID2
              2008-12-14 19:14:14,493 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] HttpConnectionManager.getConnection:  config = HostConfiguration[host=http://www.myopenid.com], timeout = 0
              2008-12-14 19:14:14,493 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Allocating new connection, hostConfig=HostConfiguration[host=http://www.myopenid.com]
              2008-12-14 19:14:14,493 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Open connection to www.myopenid.com:80
              2008-12-14 19:14:14,562 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header
              2008-12-14 19:14:14,567 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.methods.EntityEnclosingMethod] Request body sent
              2008-12-14 19:14:14,925 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Buffering response body
              2008-12-14 19:14:14,925 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Should close connection in response to directive: close
              2008-12-14 19:14:14,925 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Releasing connection back to connection manager.
              2008-12-14 19:14:14,925 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Freeing connection, hostConfig=HostConfiguration[host=http://www.myopenid.com]
              2008-12-14 19:14:14,925 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.util.IdleConnectionHandler] Adding connection at: 1229282054925
              2008-12-14 19:14:14,925 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Notifying no-one, there are no waiting threads
              2008-12-14 19:14:14,965 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.consumer.ConsumerManager] Associated with http://www.myopenid.com/server handle: {HMAC-SHA256}{49455b07}{UXEtjg==}
              2008-12-14 19:14:14,968 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.consumer.ConsumerManager] Trying to associate with http://www.myopenid.com/server attempts left: 4
              2008-12-14 19:14:14,969 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.consumer.ConsumerManager] Found an existing association.
              2008-12-14 19:14:14,970 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.consumer.ConsumerManager] Creating authentication request for OP-endpoint: http://www.myopenid.com/server claimedID: http://mb.myopenid.com/ OP-specific ID: http://mb.myopenid.com/
              2008-12-14 19:14:14,981 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.server.RealmVerifier] Return URL: http://localhost:443/a/openid.seam matches realm: http://localhost:443/a/openid.seam
              2008-12-14 19:14:14,982 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.max-redirects = 0
              2008-12-14 19:14:14,982 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.allow-circular-redirects = true
              2008-12-14 19:14:14,982 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.socket.timeout = 3000
              2008-12-14 19:14:14,982 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.connection.timeout = 5000
              2008-12-14 19:14:14,982 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.params.DefaultHttpParams] Set parameter http.protocol.cookie-policy = ignoreCookies
              2008-12-14 19:14:14,983 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] HttpConnectionManager.getConnection:  config = HostConfiguration[host=http://localhost:443], timeout = 0
              2008-12-14 19:14:14,983 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Allocating new connection, hostConfig=HostConfiguration[host=http://localhost:443]
              2008-12-14 19:14:14,983 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Open connection to localhost:443
              2008-12-14 19:14:14,983 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header
              2008-12-14 19:14:14,990 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodDirector] Closing the connection.
              2008-12-14 19:14:14,990 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Releasing connection back to connection manager.
              2008-12-14 19:14:14,990 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Freeing connection, hostConfig=HostConfiguration[host=http://localhost:443]
              2008-12-14 19:14:14,990 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.util.IdleConnectionHandler] Adding connection at: 1229282054990
              2008-12-14 19:14:14,990 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Notifying no-one, there are no waiting threads
              2008-12-14 19:14:14,994 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.discovery.yadis.YadisResolver] HTTP error during HEAD request on: http://localhost:443/a/openid.seam
              org.apache.commons.httpclient.ProtocolException: The server localhost failed to respond with a valid HTTP response
                      at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(Unknown Source)
                      at org.apache.commons.httpclient.HttpMethodBase.readResponse(Unknown Source)
                      at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown Source)
                      at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source)
                      at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)
                      at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
                      at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
                      at org.openid4java.discovery.yadis.YadisResolver.headXrdsUrl(YadisResolver.java:546)
                      at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:249)
                      at org.openid4java.discovery.Discovery.rpDiscovery(Discovery.java:646)
                      at org.openid4java.server.RealmVerifier.validate(RealmVerifier.java:133)
                      at org.openid4java.server.RealmVerifier.validate(RealmVerifier.java:108)
                      at org.openid4java.message.AuthRequest.validate(AuthRequest.java:355)
                      at org.openid4java.message.AuthRequest.createAuthRequest(AuthRequest.java:101)
                      at org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:1000)
                      at org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:937)
                      at org.jboss.seam.security.openid.OpenId.authRequest(OpenId.java:95)
                      at org.jboss.seam.security.openid.OpenId.login(OpenId.java:68)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:585)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
              2008-12-14 19:14:15,022 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] HttpConnectionManager.getConnection:  config = HostConfiguration[host=http://localhost:443], timeout = 0
              2008-12-14 19:14:15,022 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Getting free connection, hostConfig=HostConfiguration[host=http://localhost:443]
              2008-12-14 19:14:15,022 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Open connection to localhost:443
              2008-12-14 19:14:15,023 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodBase] Adding Host request header
              2008-12-14 19:14:15,024 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpMethodDirector] Closing the connection.
              2008-12-14 19:14:15,024 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.HttpConnection] Releasing connection back to connection manager.
              2008-12-14 19:14:15,024 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Freeing connection, hostConfig=HostConfiguration[host=http://localhost:443]
              2008-12-14 19:14:15,024 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.util.IdleConnectionHandler] Adding connection at: 1229282055024
              2008-12-14 19:14:15,024 DEBUG [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.apache.commons.httpclient.MultiThreadedHttpConnectionManager] Notifying no-one, there are no waiting threads
              2008-12-14 19:14:15,025 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [org.openid4java.server.RealmVerifier] Discovery failed on realm: http://localhost:443/a/openid.seam
              org.openid4java.discovery.yadis.YadisException: 1799: Fatal transport error: 
                      at org.openid4java.discovery.yadis.YadisResolver.getXrds(YadisResolver.java:359)
                      at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:251)
                      at org.openid4java.discovery.Discovery.rpDiscovery(Discovery.java:646)
                      at org.openid4java.server.RealmVerifier.validate(RealmVerifier.java:133)
                      at org.openid4java.server.RealmVerifier.validate(RealmVerifier.java:108)
                      at org.openid4java.message.AuthRequest.validate(AuthRequest.java:355)
                      at org.openid4java.message.AuthRequest.createAuthRequest(AuthRequest.java:101)
                      at org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:1000)
                      at org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:937)
                      at org.jboss.seam.security.openid.OpenId.authRequest(OpenId.java:95)
                      at org.jboss.seam.security.openid.OpenId.login(OpenId.java:68)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:585)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                      at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                      at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                      at org.jboss.seam.security.openid.OpenId_$$_javassist_4.login(OpenId_$$_javassist_4.java)
              Caused by: org.apache.commons.httpclient.ProtocolException: The server localhost failed to respond with a valid HTTP response
                      at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(Unknown Source)
                      at org.apache.commons.httpclient.HttpMethodBase.readResponse(Unknown Source)
                      at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown Source)
                      at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source)
                      at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)
                      at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
                      at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
                      at org.openid4java.discovery.yadis.YadisResolver.getXrds(YadisResolver.java:293)
                      at org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:251)
                      at org.openid4java.discovery.Discovery.rpDiscovery(Discovery.java:646)
                      at org.openid4java.server.RealmVerifier.validate(RealmVerifier.java:133)
                      at org.openid4java.server.RealmVerifier.validate(RealmVerifier.java:108)
                      at org.openid4java.message.AuthRequest.validate(AuthRequest.java:355)
                      at org.openid4java.message.AuthRequest.createAuthRequest(AuthRequest.java:101)
                      at org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:1000)
                      at org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:937)
                      at org.jboss.seam.security.openid.OpenId.authRequest(OpenId.java:95)
                      at org.jboss.seam.security.openid.OpenId.login(OpenId.java:68)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      at java.lang.reflect.Method.invoke(Method.java:585)
                      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                      at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
              2008-12-14 19:14:15,075 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR] org.openid4java.message.MessageException: 769: Realm verification failed for: http://localhost:443/a/openid.seam
              2008-12-14 19:14:15,077 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.openid4java.message.AuthRequest.validate(AuthRequest.java:358)
              2008-12-14 19:14:15,078 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.openid4java.message.AuthRequest.createAuthRequest(AuthRequest.java:101)
              2008-12-14 19:14:15,079 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:1000)
              2008-12-14 19:14:15,081 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.openid4java.consumer.ConsumerManager.authenticate(ConsumerManager.java:937)
              2008-12-14 19:14:15,082 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.security.openid.OpenId.authRequest(OpenId.java:95)
              2008-12-14 19:14:15,082 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.security.openid.OpenId.login(OpenId.java:68)
              2008-12-14 19:14:15,084 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              2008-12-14 19:14:15,084 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              2008-12-14 19:14:15,086 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              2008-12-14 19:14:15,087 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at java.lang.reflect.Method.invoke(Method.java:585)
              2008-12-14 19:14:15,088 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
              2008-12-14 19:14:15,089 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
              2008-12-14 19:14:15,090 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
              2008-12-14 19:14:15,091 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
              2008-12-14 19:14:15,092 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              2008-12-14 19:14:15,093 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
              2008-12-14 19:14:15,094 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              2008-12-14 19:14:15,094 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
              2008-12-14 19:14:15,095 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
              2008-12-14 19:14:15,097 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
              2008-12-14 19:14:15,098 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
              2008-12-14 19:14:15,099 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
              2008-12-14 19:14:15,100 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.seam.security.openid.OpenId_$$_javassist_4.login(OpenId_$$_javassist_4.java)
              2008-12-14 19:14:15,101 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              2008-12-14 19:14:15,102 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              2008-12-14 19:14:15,104 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              2008-12-14 19:14:15,105 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at java.lang.reflect.Method.invoke(Method.java:585)
              2008-12-14 19:14:15,106 ERROR [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDERR]        at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
              2008-12-14 19:14:15,107 INFO  [] [127.0.0.1] [8F224F230F0302BFBEFE7079AE8A80B6] [STDOUT] auth to --> null
              [[removed NPE]]
              


              • 4. Re: Testing OpenId from localhost
                Dave Everson Newbie

                Was this additional debug logging able to provide any additional insight?


                Thanks!

                • 5. Re: Testing OpenId from localhost
                  Ronald van Kuijk Apprentice

                  Sorry, no (I missed the previous post due to forum issues here (no way to configure I want replies by mail for specific posts) and an rss feed that contains to much non-info in it)


                  Just more of the same info in there. Maybe you have better luck in the openid4java forum