logo       

[picocontainer-scm] [jira] Created: (NANOPERSISTENCE-9) SessionComponent. C: msg#00096

java.picocontainer.cvs

Subject: [picocontainer-scm] [jira] Created: (NANOPERSISTENCE-9) SessionComponent. Can Mask Hibernate Exceptions if Session was closed due to Exception

SessionComponent. Can Mask Hibernate Exceptions if Session was closed due to
Exception
--------------------------------------------------------------------------------------

Key: NANOPERSISTENCE-9
URL: http://jira.codehaus.org/browse/NANOPERSISTENCE-9
Project: NanoContainer Persistence
Issue Type: Bug
Components: hibernate
Reporter: Michael Rimov
Assigned To: Michael Rimov


org.nanocontainer.persistence.hibernate.SessionComponent.stop() should see if
Session is open prior to closing.

ie:

{code}
public void stop() {
if (session.isOpen()) {
close();
}
}
{code}

Otherwise, a hibernate exception is thrown because the session was already
closed and the error thrown during the request gets masked.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
<a
href="http://xircles.codehaus.org/manage_email";>http://xircles.codehaus.org/manage_email</a>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise