You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org> on 2007/01/09 09:26:28 UTC
[jira] Updated: (GERONIMO-2491) Hibernate passes connections
between servlets which we don't support
[ https://issues.apache.org/jira/browse/GERONIMO-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vamsavardhana Reddy updated GERONIMO-2491:
------------------------------------------
Fix Version/s: (was: 2.0-M1)
2.0-M2
> Hibernate passes connections between servlets which we don't support
> --------------------------------------------------------------------
>
> Key: GERONIMO-2491
> URL: https://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-M2
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira