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 38242] New: - StandardSession.invalidate() Session Already Invalidated; removeAttributeInternal JNDIManager
Date Thu, 12 Jan 2006 16:44:00 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=38242>.
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=38242

           Summary: StandardSession.invalidate() Session Already
                    Invalidated; removeAttributeInternal JNDIManager
           Product: Tomcat 5
           Version: 5.5.12
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Webapps:Manager
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: robbyoung21@gmail.com


On the class org.apache.catalina.session.StandardSession, method invalidate() it
calls expire() which flags the session as invalid; setValid(false), then in the
same expire method it calls removeAttributeInternal(keys[i], notify), this
method makes a method call of: ((HttpSessionBindingListener)
value).valueUnbound(event).    When the implementing class tries to call:
ttpSessionBindingEvent bindingEvent, bindingEvent.getSession().getId(); you get
a IllegalStateException, the Session is Already Invalidated.  This is caused
because the setValid(false) should be set at the end of the expire() method
after all objects are unbound.  The implementation example I am having the
problem with is on UPortal org.jasig.portal.jndi.JNDIManger.java class @Version
$Revision: 1.32, on the valueUnbound (HttpSessionBindingEvent bindingEvent) method.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message