Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 62861 invoked from network); 30 Jan 2003 10:12:56 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 30 Jan 2003 10:12:56 -0000 Received: (qmail 3806 invoked by uid 97); 30 Jan 2003 10:14:33 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 3799 invoked from network); 30 Jan 2003 10:14:33 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 30 Jan 2003 10:14:33 -0000 Received: (qmail 62055 invoked by uid 500); 30 Jan 2003 10:12:45 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 62044 invoked from network); 30 Jan 2003 10:12:44 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 30 Jan 2003 10:12:44 -0000 Received: (qmail 3792 invoked by uid 50); 30 Jan 2003 10:14:22 -0000 Date: 30 Jan 2003 10:14:22 -0000 Message-ID: <20030130101422.3791.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 16589] New: - Invalidating a session with a HttpSessionBindingListener object type attribute throws IllegalStateException X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16589 Invalidating a session with a HttpSessionBindingListener object type attribute throws IllegalStateException Summary: Invalidating a session with a HttpSessionBindingListener object type attribute throws IllegalStateException Product: Tomcat 4 Version: 4.1.18 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: it@mighty.co.za We have an application where users authenticate to login. Upon login we add an object implementing HttpSessionBindingListener to the session. When user explicitly logs out, we first remove object from session and then invalidate session. If we only invalidate session without first removing object from session, IllegalStateException is thrown. Also, when session times out, valueUnbound throws IllegalStateException trying to get handle on session: public void valueUnbound(HttpSessionBindingEvent event) { HttpSession session = event.getSession(); Object o = session.getAttribute(et... } Error : java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute (StandardSession.java:942) --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org