takcy / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

videntity failure with 0.9.4.339 #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. apply the patch from issue #35
2. change the pom.xml of simple-openid to use 0.9.4.339 (add the
http://alchim.sf.net/download/releases as repository)
3. start simple-openid (mvn jetty:run)
4. connect to http://<myserver>:<myport>/simple-openid (don't use
localhost, faile also with ip address)
5. submit http://demouser.videnty.org/ as OpenID (it's a valid openid, I
could sent you the password via private mail, if required)

What is the expected output?
* to be redirected to the login page of videntity.org, like it's done if I
connect with http://localhost:8080/simple-openid

What do you see instead?
(note: result is different with 0.9.3 (see issue #36))

* on browser url:
  http://127.0.0.1:8080/simple-openid/consumer_redirect.jsp
* on brower window :
HTTP ERROR: 500

INTERNAL_SERVER_ERROR

RequestURI=/simple-openid/consumer_redirect.jsp

Powered by Jetty://

* on console:
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.
[INFO] Discovery - Starting discovery on URL identifier:
http://demouser.videntity.org/
[WARN] Discovery - Yadis discovery failed on http://demouser.videntity.org/
: 1800: A Yadis Resource Descriptor URL MUST be an absolute URL and it must
be HTTP or HTTPS; found: null
[INFO] Discovery - No OpenID service endpoints discovered through Yadis;
attempting HTML discovery...
[INFO] HtmlResolver - HTML discovery succeeded on:
http://demouser.videntity.org/
[INFO] Discovery - Discovered 1 OpenID endpoints.
[INFO] ConsumerManager - Trying to associate with
http://videntity.org/server attempts left: 4
[WARN] ConsumerManager - Could not create association of type:
:HMAC-SHA1:OpenID1
[INFO] ConsumerManager - Associated with http://videntity.org/server
handle: {estore}{HMAC-SHA1}{1}{0}
[INFO] ConsumerManager - Trying to associate with
http://videntity.org/server attempts left: 4
[INFO] ConsumerManager - Found an existing association.
[INFO] ConsumerManager - Creating authentication request for OP-endpoint:
http://videntity.org/server claimedID: http://demouser.videntity.org/
OP-specific ID: http://demouser.videntity.org/
[INFO] RealmVerifier - Return URL:
http://127.0.0.1:8080/simple-openid/consumer_returnurl.jsp matches realm:
http://127.0.0.1:8080/simple-openid/consumer_returnurl.jsp
[INFO] ConsumerManager - Verifying authentication response...
[INFO] ConsumerManager - Verifying authentication response...
[ERROR] RealmVerifier - Discovery failed on realm:
http://127.0.0.1:8080/simple-openid/consumer_returnurl.jsp
<org.openid4java.discovery.yadis.YadisException: 1803: HTML response must
have exactly one HEAD element, found 0 :
>org.openid4java.discovery.yadis.YadisException: 1803: HTML response must
have exactly one HEAD element, found 0 : 
        at
org.openid4java.discovery.yadis.YadisResolver.getHtmlMeta(YadisResolver.java:400
)
        at
org.openid4java.discovery.yadis.YadisResolver.getXrds(YadisResolver.java:342)
        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.apache.jsp.consumer_005fredirect_jsp._jspService(org.apache.jsp.consumer_005
fredirect_jsp:101)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollecti
on.java:149)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
        at org.mortbay.jetty.Server.handle(Server.java:303)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:320)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

2007-10-08 12:48:05.830::WARN:  /simple-openid/consumer_redirect.jsp: 
java.lang.IllegalStateException: STREAM
        at org.mortbay.jetty.Response.getWriter(Response.java:502)
        at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:149)
        at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:142)
        at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:210)
        at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryIm
pl.java:134)
        at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:
89)
        at
org.apache.jsp.consumer_005fredirect_jsp._jspService(org.apache.jsp.consumer_005
fredirect_jsp:188)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollecti
on.java:149)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
        at org.mortbay.jetty.Server.handle(Server.java:303)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:735)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:636)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:320)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
2007-10-08 12:48:05.833::WARN:  /simple-openid/consumer_redirect.jsp
java.lang.IllegalStateException: STREAM
        at org.mortbay.jetty.Response.getWriter(Response.java:502)
        at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:149)
        at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:142)
        at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:210)
...

What version of the product are you using? On what operating system?

openid4java 0.9.4.339

Original issue reported on code.google.com by david.bernard.31 on 8 Oct 2007 at 10:50

GoogleCodeExporter commented 8 years ago
I do a test with 0.9.5-SNAPSHOT (rev 341) and the result failed, but like for 
0.9.3 ???

Original comment by david.bernard.31 on 8 Oct 2007 at 12:38

GoogleCodeExporter commented 8 years ago
with 0.9.4.339, if I use http://<myserver>:<myport>/simple-openid/user.jsp, 
I've got
the same probleme (Error 500, same log). But it's work for 0.9.5-SNAPSHOT 
(except an
error when I click on login).

May those info could help you fix the bug.

Original comment by david.bernard.31 on 8 Oct 2007 at 12:50

GoogleCodeExporter commented 8 years ago

Original comment by david.bernard.31 on 18 Oct 2007 at 8:43

GoogleCodeExporter commented 8 years ago
hellow, 
I try to run using openId4java-0.9.6 on Windows and JDK 1.6, and get the same 
problem. I trace this http://jira.codehaus.org/browse/JETTY-229 and 
http://jira.codehaus.org/browse/JETTY-231 but any finish with solution until to 
date.

Original comment by papurr...@gmail.com on 9 Aug 2012 at 3:07