[jboss-jira] [JBoss JIRA] (AS7-3335) JPA after_completion Synchronization expects to be able to TransactionSynchronizationRegistry::putResource on a committed (i.e. inactive) transaction
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Tue Jan 17 10:37:18 EST 2012
[ https://issues.jboss.org/browse/AS7-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Marlow updated AS7-3335:
------------------------------
Fix Version/s: 7.1.0.Final
> JPA after_completion Synchronization expects to be able to TransactionSynchronizationRegistry::putResource on a committed (i.e. inactive) transaction
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AS7-3335
> URL: https://issues.jboss.org/browse/AS7-3335
> Project: Application Server 7
> Issue Type: Bug
> Components: JPA / Hibernate
> Reporter: Tom Jenkinson
> Assignee: Scott Marlow
> Fix For: 7.1.0.Final
>
>
> The JPA has registered an after_completion which incorrectly attempts to call putResource on the TransactionSynchronizationRegistry as the transaction is committed (therefore inactive).
> Offending code is in the jboss-as-jpa module:
> org.jboss.as.jpa.transaction.TransactionUtil.SessionSynchronization.afterCompletion
> getInstance().putEntityManagerInTransactionRegistry(scopedPuName, null);
> This is incorrect according to the specification as the transaction is now inactive:
> http://jcp.org/aboutJava/communityprocess/maintenance/jsr907/907ChangeLog.html#putResource
> Note, this was allowed in version 4.16.0.Final (and likely below) of JBoss Transactions, though it is now being fixed - sorry!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list