[ 
https://issues.apache.org/jira/browse/WICKET-5049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582056#comment-13582056
 ] 

Christoph Leiter commented on WICKET-5049:
------------------------------------------

Also happens later while the app is running:

10:48:31.704 [WARN ] HashSessionScavenger-0 - org.eclipse.jetty.server.session 
- Problem scavenging sessions
java.lang.NullPointerException: null
        at 
org.apache.wicket.session.HttpSessionStore$SessionBindingListener.valueUnbound(HttpSessionStore.java:469)
 ~[wicket-core-6.6.0.jar:6.6.0]
        at 
org.eclipse.jetty.server.session.AbstractSession.unbindValue(AbstractSession.java:519)
 ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
        at 
org.eclipse.jetty.server.session.AbstractSession.clearAttributes(AbstractSession.java:370)
 ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
        at 
org.eclipse.jetty.server.session.AbstractSession.doInvalidate(AbstractSession.java:337)
 ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
        at 
org.eclipse.jetty.server.session.HashedSession.doInvalidate(HashedSession.java:90)
 ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
        at 
org.eclipse.jetty.server.session.AbstractSession.timeout(AbstractSession.java:315)
 ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
        at 
org.eclipse.jetty.server.session.HashSessionManager.scavenge(HashSessionManager.java:322)
 ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
        at 
org.eclipse.jetty.server.session.HashSessionManager$2.run(HashSessionManager.java:284)
 [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
        at java.util.TimerThread.mainLoop(Timer.java:555) [na:1.7.0_13]
        at java.util.TimerThread.run(Timer.java:505) [na:1.7.0_13]

                
> NPE in HttpSessionStore on startup
> ----------------------------------
>
>                 Key: WICKET-5049
>                 URL: https://issues.apache.org/jira/browse/WICKET-5049
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.6.0
>            Reporter: Christoph Leiter
>            Priority: Minor
>
> I got this exception when starting my wicket app:
> 10:00:24.879 [WARN ] qtp725811713-28 - o.e.j.server.AbstractHttpConnection - /
> java.lang.NullPointerException: null
>       at 
> org.apache.wicket.session.HttpSessionStore$SessionBindingListener.valueUnbound(HttpSessionStore.java:469)
>  ~[wicket-core-6.6.0.jar:6.6.0]
>       at 
> org.eclipse.jetty.server.session.AbstractSession.unbindValue(AbstractSession.java:519)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.session.AbstractSession.clearAttributes(AbstractSession.java:370)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.session.AbstractSession.doInvalidate(AbstractSession.java:337)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.session.HashedSession.doInvalidate(HashedSession.java:90)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.session.AbstractSession.invalidate(AbstractSession.java:327)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.session.AbstractSession.access(AbstractSession.java:283)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.session.AbstractSessionManager.access(AbstractSessionManager.java:188)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:172)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) 
> ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>  ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at org.eclipse.jetty.server.Server.handle(Server.java:368) 
> ~[jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:488)
>  [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
>  [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:932)
>  [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:994)
>  [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) 
> [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) 
> [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
>  [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
>  [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
>  [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
>  [jetty-all-server-8.1.9.v20130131.jar:8.1.9.v20130131]
>       at java.lang.Thread.run(Thread.java:722) [na:1.7.0_13]
> The line is: wicketSession.onInvalidate(); A simple null check should suffice.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to