[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-215) EntityManager fails during transaction commit after it has been closed
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Fri Aug 18 11:57:18 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-215?page=comments#action_23985 ]
Emmanuel Bernard commented on EJB-215:
--------------------------------------
I've commited a fix in SVN. I'd appreciate if you can spend some time in testing it.
You'll have to extract from SVN http://anonhibernate.labs.jboss.com/trunk
Hibernate3
HibernateExt
cd Hibernate3
ant clean prepare-dir-up
cd ../HibernateExt/ejb
ant clean jar
use
$/hibernate-3.2/hibernate3.jar
$/HibernateExt/ejb/lib/*.jar
$/HibernateExt/ejb/target/hibernate-entitymanager/hibernate-entitymanager.jar
Thanks
> EntityManager fails during transaction commit after it has been closed
> ----------------------------------------------------------------------
>
> Key: EJB-215
> URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-215
> Project: Hibernate Entity Manager
> Type: Bug
> Components: EntityManager
> Versions: 3.2.0.cr1
> Reporter: Barry Kaplan
> Fix For: 3.2.0
>
>
> As per the JPA spec, an EntityManager should be closable prior to the end of the transaction. At least in the scenario where an exception is thrown during commit, AbstractEntityManagerImpl will attempt to mark the transaction rollback only, but in doing so it will access the Session. The session checks if it is closed, and if so throws an exception. There may be other scenarios where closing the EM prior to transaction end cause incorrect failures.
> For some background, there are two threads of discussion for this problem:
> - http://forum.hibernate.org/viewtopic.php?t=963262
> - http://opensource.atlassian.com/projects/spring/browse/SPR-2412
--
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
More information about the hibernate-issues
mailing list