Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 90435 invoked from network); 10 Jan 2008 09:16:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2008 09:16:59 -0000 Received: (qmail 48838 invoked by uid 500); 10 Jan 2008 09:16:46 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 48792 invoked by uid 500); 10 Jan 2008 09:16:46 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 48761 invoked by uid 99); 10 Jan 2008 09:16:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 01:16:46 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 09:16:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 209A3714211 for ; Thu, 10 Jan 2008 01:16:34 -0800 (PST) Message-ID: <12990974.1199956594131.JavaMail.jira@brutus> Date: Thu, 10 Jan 2008 01:16:34 -0800 (PST) From: "Simon Kitching (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (ORCHESTRA-14) ConversationManagerSessionListener leak & IllegalStateException In-Reply-To: <14328633.1199808116533.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ORCHESTRA-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557575#action_12557575 ] Simon Kitching commented on ORCHESTRA-14: ----------------------------------------- Thomas, which servlet container are you using? I have tested both Jetty and Tomcat 6.0 and neither throws an IllegalStateException when session.getId() is called from the attributeRemoved method while removing attributes from an expired session. The javadocs for the HttpSession class don't say anything either way about whether it is valid to call getId on an invalidated session or not. Point (1) indeed looks right. Good catch.. > ConversationManagerSessionListener leak & IllegalStateException > --------------------------------------------------------------- > > Key: ORCHESTRA-14 > URL: https://issues.apache.org/jira/browse/ORCHESTRA-14 > Project: MyFaces Orchestra > Issue Type: Bug > Components: Conversation > Affects Versions: 1.1 > Environment: tomcat 5 > Reporter: Thomas Spiegl > Assignee: Thomas Spiegl > Fix For: 1.1 > > > ConversationManagerSessionListener has serveral issues: > 1) attributeReplaced sets the old instance of conversationManager in conversationWiperThread instead of the new one > 2) on session expire ConversationManagerSessionListener.attributeRemoved is getting called and session.getId() throws IllegalStateException > 3) ConversationManagerSessionListener.sessionDestroyed will throw a IllegalStateException as well -> method is useless > Solution: > 1) use a unique id for conversationManager instead of session.getId() as a key in conversationWiperThread > 2) remove HttpSessionListener interface from ConversationManagerSessionListener -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.