You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "bernard (JIRA)" <ji...@apache.org> on 2009/05/10 06:22:45 UTC
[jira] Created: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
NullPointerException NPE in DiskPageStore after Session Timeout
---------------------------------------------------------------
Key: WICKET-2268
URL: https://issues.apache.org/jira/browse/WICKET-2268
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4-RC2
Environment: JDK 1.6, Netbeans 6.5 with GlassFish
Reporter: bernard
Priority: Critical
A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
Wicket version 1.4 RC2
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
at org.apache.wicket.Session.getPage(Session.java:660)
at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2268.
-----------------------------------
Resolution: Fixed
in wicket page-expired error represents the *technical* reality of the fact that the user tried to access a page that belongs to a session that has expired. what the *user* perceives as a session expiration may or may not be the same.
there are many ways to deal with this to make it more user friendly.
the best way is to use a StatelessForm for the credentials - that way the form will never expire.
other ways include setting the page expired error page back to homepage, or to a subclass of the homepage that displays an error explaining to the user what happened. or even setting it back to the login page with an error message - once again explaining that the user has waiting too long before performing an action and that they have to start over.
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "tomoharu fujita (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713561#action_12713561 ]
tomoharu fujita commented on WICKET-2268:
-----------------------------------------
org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage should just return false if sessionId is null?
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Attachments: ExpiryCrash.zip
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Matej Knopp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729735#action_12729735 ]
Matej Knopp commented on WICKET-2268:
-------------------------------------
committed the fix to 1.3 as well
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.3.7, 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729296#action_12729296 ]
Igor Vaynberg commented on WICKET-2268:
---------------------------------------
try with latest snapshot from trunk, there was a problem with rc5/6 which caused the pageexpiredexception to stop working.
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "bernard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727787#action_12727787 ]
bernard commented on WICKET-2268:
---------------------------------
Matej,
Thanks very much for trying this, and my apologies for saying that the problem is still the same. I tried again and found that my app server (GlassFish) failed to clean the project - the old wicket rc5 libraries co-existed alongside rc6.
But I still get an exception (please see below).
The test case may seem a bit odd, but it is simple, 100% derived from a real world scenario where the welcome page contains the login form, and if the user waits on that page too long (which is not so unlikely), then he gets that exception.
The user will not understand what expired here - it is the welcome page and he has not even started. He has not logged on, so from the user's perspective there is no session that could have expired.
So the best I could do (I think) is to use setPageExpiredErrorPage() to avoid the exception? It is still disruptive just a different kind of disruption.
What is the wicket way to do in such a case where the login page itself expires?
Many thanks.
Bernard
WicketMessage: org.apache.wicket.protocol.http.PageExpiredException: Request cannot be processed. The target page does not exist anymore.
Root cause:
org.apache.wicket.protocol.http.PageExpiredException: Request cannot be processed. The target page does not exist anymore.
at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.handleExpiredPage(HybridUrlCodingStrategy.java:307)
at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:275)
at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:507)
at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:191)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1301)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1419)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "bernard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
bernard reopened WICKET-2268:
-----------------------------
I have tested this with 1.4 RC6. It appears the problem is still the same. I would be really happy if after the next RC, there will be a couple more RCs because I still get other crashes in the area of session expiriy, and others. So it would be good if I could download a complete build with this fix included soon.
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg reassigned WICKET-2268:
-------------------------------------
Assignee: Matej Knopp
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Attachments: ExpiryCrash.zip
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Matej Knopp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matej Knopp resolved WICKET-2268.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.4-RC6
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Matej Knopp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718210#action_12718210 ]
Matej Knopp commented on WICKET-2268:
-------------------------------------
What makes you think it's not?
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "bernard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
bernard updated WICKET-2268:
----------------------------
Attachment: ExpiryCrash.zip
Source files to reproduce the problem
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Priority: Critical
> Attachments: ExpiryCrash.zip
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Bruno Borges (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718190#action_12718190 ]
Bruno Borges commented on WICKET-2268:
--------------------------------------
Wouldn't be plausible to first check why isn't the timed out session been removed from the cache?
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Matej Knopp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727657#action_12727657 ]
Matej Knopp commented on WICKET-2268:
-------------------------------------
Just tried the testcase again works as expected. After clicking sign-in button i get session expiration, no exception.
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "bernard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
bernard reopened WICKET-2268:
-----------------------------
Hi,
I feel quite bad about re-opening this where it is possibly my misunderstanding once again.
Of course I will try the best suggestion - a stateless form.
But I am getting an unexpected error when as suggested I set the expired page back to the login page (another one of my use cases).
In this case all I did is to add in TestApplication.init() a line
getApplicationSettings().setPageExpiredErrorPage(SignInPage.class);
On expiry I get an exception
org.apache.wicket.protocol.http.PageExpiredException: Request cannot be processed. The target page does not exist anymore.
org.apache.wicket.protocol.http.request.InvalidUrlException: org.apache.wicket.protocol.http.PageExpiredException: Request cannot be processed. The target page does not exist anymore.
...
caused by org.apache.wicket.protocol.http.PageExpiredException: Request cannot be processed. The target page does not exist anymore.
and not SignInPage as expected. This looks like a bug to me.
With my limited understanding I cannot distinguish between session expiry and page expiry.
Are these different scenarios and do I have do code different handling of these?
Many thanks
Bernard
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "david rapin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729628#action_12729628 ]
david rapin commented on WICKET-2268:
-------------------------------------
I have experienced the same exception as in the original bug description with wicket 1.3.6 on tomcat 6.0.19.
I'll post a stacktrace if necessary.
david
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "Matej Knopp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matej Knopp closed WICKET-2268.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.3.7
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Fix For: 1.3.7, 1.4-RC6
>
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WICKET-2268) NullPointerException NPE in
DiskPageStore after Session Timeout
Posted by "tomoharu fujita (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
tomoharu fujita updated WICKET-2268:
------------------------------------
Attachment: session-expire-patch-1.4-rc4.txt
This patch allows Session#getPage(final int pageId, final int versionNumber) return null when the session is temporary.
> NullPointerException NPE in DiskPageStore after Session Timeout
> ---------------------------------------------------------------
>
> Key: WICKET-2268
> URL: https://issues.apache.org/jira/browse/WICKET-2268
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC2
> Environment: JDK 1.6, Netbeans 6.5 with GlassFish
> Reporter: bernard
> Assignee: Matej Knopp
> Priority: Critical
> Attachments: ExpiryCrash.zip, session-expire-patch-1.4-rc4.txt
>
>
> A NullPointerException is thrown on an attempt to sumit a login form after session timeout.
> Wicket version 1.4 RC2
> java.lang.NullPointerException
> at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getSessionEntry(DiskPageStore.java:661)
> at org.apache.wicket.protocol.http.pagestore.DiskPageStore.containsPage(DiskPageStore.java:1255)
> at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.containsPage(SecondLevelCacheSessionStore.java:268)
> at org.apache.wicket.Session.getPage(Session.java:660)
> at org.apache.wicket.request.target.coding.HybridUrlCodingStrategy.decode(HybridUrlCodingStrategy.java:211)
> at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.targetForRequest(WebRequestCodingStrategy.java:490)
> at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:184)
> at g1.base.MemberApplication$2.resolve(MemberApplication.java:327)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
> at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> Please refer to the attached testcase.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.