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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to