logo       

Re: Session timeout NPE: msg#00725

cms.sakai.devel

Subject: Re: Session timeout NPE

After some further analysis...it is not isolated to JSF tools. The problem seems to occur when a POST is sent following a timeout, regardless of the tool. The LoginTool handles the POST with doPost as if it came from the LoginTool form, even though this may not be the case.

Attached is a patch (not sure if it is the *best* solution, but it works) to resolve this for sakai 2.1.2. Although I haven't checked the issue in 2.2, the code still looks the same and the patch should work there as well. *Note* nobody has verified that this is an issue for them as well, so it could be something funky with our code/configuration.

Jim

Jim Pease wrote:
In our installation of sakai 2.1.2, if a session times out while using certain tools, the user is displayed a stack trace instead of the login tool. This exists in tools implemented using JSF (or so it appears), such as Gradebook, Syllabus, Roster, Presentation and our Goal Management Tool. The problem doesn't exist in Assignments or Announcements.

Extremely brief trace:
...
java.lang.NullPointerException
at org.sakaiproject.tool.login.LoginTool.doPost(LoginTool.java:353)
...

Can anybody verify that this is an issue, or have any idea what could be causing this? I couldn't find any bug report and assumed this would have been noticed pretty quickly...

Thanks,

Jim


--
James M Pease - Software Developer - The Living SchoolBook
030 Huntington Hall - Syracuse University - Syracuse, NY 13244
315-443-3450
[see attachment: "sakai.login.patch", size: 1139 bytes]


Attachments:

sakai.login.patch
http://collab.sakaiproject.org/access/content/attachment/7c7daf4f-1108-409f-804d-26a7475fa9e1/sakai.login.patch

----------------------
This automatic notification message was sent by Sakai Collab
(http://collab.sakaiproject.org/portal) from the DG: Development site.
You can modify how you receive notifications at My Workspace > Preferences.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise