tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48818] Request.getSession() can return null
Date Sun, 28 Feb 2010 20:03:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48818

--- Comment #3 from Stephen Kestle <opensource@kestle.net> 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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message