OpenId4Java不适合我

时间:2012-04-03 18:45:18

标签: openid4java

您好我正在使用openId4Java作为我的应用程序,但对于任何URL,我收到以下错误。请帮我解决这个问题。

谢谢...

例外

org.apache.jasper.JasperException:javax.servlet.ServletException:org.openid4java.discovery.yadis.YadisException:0x704:I / O传输错误:拒绝与“https://www.google.com”的连接     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

根本原因

javax.servlet.ServletException:org.openid4java.discovery.yadis.YadisException:0x704:I / O传输错误:拒绝与“https://www.google.com”的连接     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865)     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794)     org.apache.jsp.index_jsp._jspService(index_jsp.java:214)     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

根本原因

org.openid4java.discovery.yadis.YadisException:0x704:I / O传输错误:拒绝与“https://www.google.com”的连接     org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation(YadisResolver.java:478)     org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:248)     org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:232)     org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:166)     org.openid4java.discovery.Discovery.discover(Discovery.java:147)     org.openid4java.discovery.Discovery.discover(Discovery.java:129)     org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:542)     openIdTest.security.LoginManager.Login(LoginManager.java:51)     org.apache.jsp.index_jsp._jspService(index_jsp.java:154)     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

根本原因

org.apache.http.conn.HttpHostConnectException:拒绝与“https://www.google.com”的关联     org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127)     org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:147)     org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:101)     org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:381)     org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)     org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)     org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)     org.openid4java.util.HttpCache.head(HttpCache.java:335)     org.openid4java.discovery.yadis.YadisResolver.retrieveXrdsLocation(YadisResolver.java:400)     org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:248)     org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:232)     org.openid4java.discovery.yadis.YadisResolver.discover(YadisResolver.java:166)     org.openid4java.discovery.Discovery.discover(Discovery.java:147)     org.openid4java.discovery.Discovery.discover(Discovery.java:129)     org.openid4java.consumer.ConsumerManager.discover(ConsumerManager.java:542)     openIdTest.security.LoginManager.Login(LoginManager.java:51)     org.apache.jsp.index_jsp._jspService(index_jsp.java:154)     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)     javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

1 个答案:

答案 0 :(得分:1)

您似乎使用谷歌作为OP,请阅读this

要使用Google帐户开始OpenID身份验证,您必须对此网址执行初始发现:https://www.google.com/accounts/o8/id。而不是使用用户识别URL。