From: Max R. A. (JIRA) <no...@at...> - 2006-07-20 08:44:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1406?page=all ] Max Rydahl Andersen closed HHH-1406: ------------------------------------ Resolution: Rejected no testcase, no link to previous discussion on forum? > SessionException Session is closed - This Bug problem is not according solution posting > ---------------------------------------------------------------------------------------- > > Key: HHH-1406 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1406 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.1.1 > Environment: Hibernate 3.1.1 - Mysql 4.x - Jvm 1.4.2_08 > Reporter: Juan Pablo Royo > Priority: Blocker > > > The solution to the problem i posted is not correct. Because if you look the code i posted, the method PersistenceManager.saveOrUpdate() call the method PersistenceManager.getSession(). > I use a custom ThreadLocalImpl that ovewrite the methods: > protected ConnectionReleaseMode getConnectionReleaseMode() { > return ConnectionReleaseMode.ON_CLOSE; > } > protected boolean isAutoCloseEnabled() { > return false; > } > It Is imposible that the session was closed if i didn't call the close() method in Session hibernate object. > In adition to this, i debuged the code in that moment and looked that the attribute named "closed" had state false. > Please check very carefully my code posted early and give me solution to the problem, because you're wrong about the solution. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |