tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48818] Request.getSession() can return null
Date Sun, 28 Feb 2010 20:03:41 GMT

--- Comment #3 from Stephen Kestle <> 2010-02-28 20:03:39 UTC ---
(In reply to comment #2)
> By any chance does the JSP use <%@ page session="false" %>
> How, exactly, are you referencing the session within the JSP? Seems like it
> would have been better to start a discussion on the users list...

No - definitely uses sessions - the session is retrieved by:

<%=new WorkflowClientState(request.getSession()).get...()...%>

The call to getSession() just defers what could be a session creation exception
to a NPE.

The issue is threefold:

* A session should already exist (although I will enforce a login/session
creation and see how that goes)
* This has been in production for over a year (and has recently been noted to
have this error occasionally (< 1 per week)
* The Request API is violated by returning null.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message