Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 29108 invoked from network); 7 Dec 2006 20:30:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 20:30:52 -0000 Received: (qmail 68567 invoked by uid 500); 7 Dec 2006 20:30:54 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 68514 invoked by uid 500); 7 Dec 2006 20:30:54 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 68455 invoked by uid 99); 7 Dec 2006 20:30:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Dec 2006 12:30:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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, 07 Dec 2006 12:30:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 791FF7142FB for ; Thu, 7 Dec 2006 12:30:24 -0800 (PST) Message-ID: <18045080.1165523424493.JavaMail.jira@brutus> Date: Thu, 7 Dec 2006 12:30:24 -0800 (PST) From: "David Jencks (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-2491) Hibernate passes connections between servlets which we don't support In-Reply-To: <4132838.1160687736356.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 [ http://issues.apache.org/jira/browse/GERONIMO-2491?page=all ] David Jencks updated GERONIMO-2491: ----------------------------------- Fix Version/s: 2.0-M1 (was: 1.1.2) (was: 1.2) Assignee: Jeff Genender (was: David Jencks) If you can get roller to deploy.... and this is still a problem please reassign to me with a stack trace. If we fixed this problem please close. If you can't get roller to deploy anymore either, assign it back to me :-) > Hibernate passes connections between servlets which we don't support > -------------------------------------------------------------------- > > Key: GERONIMO-2491 > URL: http://issues.apache.org/jira/browse/GERONIMO-2491 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: connector > Affects Versions: 1.1.1, 1.2 > Reporter: David Jencks > Assigned To: Jeff Genender > Fix For: 2.0-M1 > > > This is based on examination of roller running in geronimo-tomcat and is partly speculation. There's certainly a problem. > 1. request sets InstanceContext 1 in ConnectionTrackingCoordinator. > 2. roller starts a persistence context (in hibernate jargon a session) in a servlet filter. No connection is opened yet > 3. tiles dispatches to a jsp > 4. dispatch sets InstanceContext 2 in CTC > 5. jsp does something persistent causing hibernate to open a db connection. This is registered with IC 2. > 6. jsp dispatch returns, so IC 1 is set in CTC > 7. roller commits the persistence context in the servlet filter, which closes the connection. Closing the connection attempts to unregister from the current IC. IC 1 doesn't know anything about this connection..... we get an NPE. > The solution isn't clear to me at the moment. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira