fangshuoshirounet / openid-server

Automatically exported from code.google.com/p/openid-server
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

java.lang.NullPointerException at cn.net.openid.jos.domain.Domain.getIdentifierPrefix(Domain.java:395) #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Nov 13, 2008 1:24:28 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
        at cn.net.openid.jos.domain.Domain.getIdentifierPrefix(Domain.java:395)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecuto
r.java:111)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelGetterImpl.invoke(Ubersp
ectImpl.java:302)
        at
org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java
:157)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:1
75)
        at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:22
0)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
        at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.jav
a:70)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
        at org.apache.velocity.Template.merge(Template.java:256)
        at
org.springframework.web.servlet.view.velocity.VelocityView.mergeTemplate(Velocit
yView.java:553)
        at
org.springframework.web.servlet.view.velocity.VelocityView.doRender(VelocityView
.java:498)
        at
org.springframework.web.servlet.view.velocity.VelocityView.renderMergedTemplateM
odel(VelocityView.java:320)
        at
org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputMode
l(AbstractTemplateView.java:174)
        at
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:258)
        at
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:
1174)
        at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.j
ava:901)
        at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.ja
va:809)
        at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet
.java:571)
        at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501
)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119
)
        at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
cn.net.openid.jos.web.filter.ApprovingRequestFilter.doFilterInternal(ApprovingRe
questFilter.java:55)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:76)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
cn.net.openid.jos.web.filter.UserAgentLocalesFilter.doFilterInternal(UserAgentLo
calesFilter.java:64)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:76)
        at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi
lterProxy.java:236)
        at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterPr
oxy.java:167)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
        at
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
        at
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90
)
        at
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.jav
a:417)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:70)
        at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi
lterProxy.java:236)
        at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterPr
oxy.java:167)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:70)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java
:630)
        at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatc
her.java:436)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.j
ava:374)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.jav
a:302)
        at
org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUr
l.java:195)
        at
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
        at
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
        at
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90
)
        at
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.jav
a:417)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
cn.net.openid.jos.web.filter.MemberFilter.doFilterInternal(MemberFilter.java:55)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:76)
        at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi
lterProxy.java:236)
        at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterPr
oxy.java:167)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
cn.net.openid.jos.web.filter.DomainFilter.doFilterInternal(DomainFilter.java:87)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:76)
        at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFi
lterProxy.java:236)
        at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterPr
oxy.java:167)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInter
nal(OpenSessionInViewFilter.java:198)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:76)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.springframework.web.filter.AbstractRequestLoggingFilter.doFilterInternal(Abs
tractRequestLoggingFilter.java:156)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:76)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Characte
rEncodingFilter.java:96)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:76)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
91)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:433)
        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(Http11Pr
otocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)

Original issue reported on code.google.com by zhoushu...@gmail.com on 13 Nov 2008 at 2:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This caused while tomcat restarted.

Tomcat stored the HTTP sessions to disk while stop, after started, the object
"domain" which seted by "cn.net.openid.jos.web.filter.DomainFilter"  in HTTP 
session
has a transient property "runtime". So NullPointerException occured as transient
objects doesn't be serialized to disk.

Original comment by zhoushu...@gmail.com on 23 Nov 2008 at 6:15

GoogleCodeExporter commented 9 years ago
Fixed in r424, r427.

Original comment by zhoushu...@gmail.com on 23 Nov 2008 at 6:50