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 29444] New: - IllegalStateException Thrown in session.getAttribute()
Date Tue, 08 Jun 2004 15:39:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29444>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29444

IllegalStateException Thrown in session.getAttribute()

           Summary: IllegalStateException Thrown in session.getAttribute()
           Product: Tomcat 4
           Version: 4.1.27
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: matt.friederich@navteq.com


In HttpSessionListener.sessionDestroyed() I see an IllegalStateException thrown 
when calling se.getSession().getAttribute(...).  

Per the JavaDoc sessionDestroyed() is "Notification that a session is ABOUT to 
be invalidated" (emphasis added), so I would expect sessionDestroyed() to be 
called before the session's invalidated (allowing for attribute clean-up, e.g. 
closing DB connections), rather than afterwards.

java.lang.IllegalStateException: getAttribute: Session already invalidated
	at org.apache.catalina.session.StandardSession.getAttribute
(StandardSession.java:954)
	at org.apache.catalina.session.StandardSessionFacade.getAttribute
(StandardSessionFacade.java:171)
	at com.xxx.yyy.zzz.reports.common.SessionListener.closeSession
(SessionListener.java:64)

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


Mime
View raw message