You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/01/12 17:44:00 UTC

DO NOT REPLY [Bug 38242] New: - StandardSession.invalidate() Session Already Invalidated; removeAttributeInternal JNDIManager

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


DO NOT REPLY [Bug 38242] - StandardSession.invalidate() Session Already Invalidated; removeAttributeInternal JNDIManager

Posted by bu...@apache.org.
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





------- Additional Comments From robbyoung21@gmail.com  2006-06-01 15:28 -------
This an issue with UPortal not implementing the specification correctly.  Many
of their classes are implementing HttpSessionBindingListener when they should be
implementing HttpSessionListener.  

See.  http://www.ja-sig.org/issues/browse/UP-1524

-- 
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


DO NOT REPLY [Bug 38242] - StandardSession.invalidate() Session Already Invalidated; removeAttributeInternal JNDIManager

Posted by bu...@apache.org.
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


william.barker@wilshire.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




------- Additional Comments From william.barker@wilshire.com  2006-01-12 18:12 -------


*** This bug has been marked as a duplicate of 34107 ***

-- 
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


DO NOT REPLY [Bug 38242] - StandardSession.invalidate() Session Already Invalidated; removeAttributeInternal JNDIManager

Posted by bu...@apache.org.
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





------- Additional Comments From robbyoung21@gmail.com  2006-01-12 17:47 -------
JBoss has implemented their ClusteredSession class correctly.  See
http://docs.jboss.org/jbossas/javadoc/4.0.2/org/jboss/web/tomcat/tc5/session/ClusteredSession.java.html

Take note of their expire() method, the setValid(false) is at the end of the 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