[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-7265) ConcurrentModificationException in SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion due to SynchronizationRegistryImpl.clearSynchronizations clearing SynchronizationRegistryImpl.synchronizations

Scott Marlow (JIRA) noreply at atlassian.com
Fri Apr 20 10:24:48 EDT 2012


    [ https://hibernate.onjira.com/browse/HHH-7265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46363#comment-46363 ] 

Scott Marlow commented on HHH-7265:
-----------------------------------

We have an AS7 test case that involves posting a REST request to recreate.  

>From http://pastie.org/3819424, I can see that its the org.hibernate.ejb.EntityManagerImpl$1.afterCompletion synchronization.

org.hibernate.ejb.EntityManagerImpl$1.afterCompletion calls SessionImpl.close()
SessionImpl.close() calls TransactionCoordinatorImpl.close()
TransactionCoordinatorImpl.close() calls TransactionCoordinatorImpl.reset()
TransactionCoordinatorImpl.reset() calls SynchronizationRegistryImpl.clearSynchronizations()
SynchronizationRegistryImpl.clearSynchronizations() clears the synchronizations

> ConcurrentModificationException in SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion due to SynchronizationRegistryImpl.clearSynchronizations clearing SynchronizationRegistryImpl.synchronizations
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-7265
>                 URL: https://hibernate.onjira.com/browse/HHH-7265
>             Project: Hibernate ORM
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 4.1.2
>         Environment: AS7 7.1.1 
>            Reporter: Scott Marlow
>             Fix For: 4.1.3
>
>
> forum post link here includes the AS7 test case and description https://community.jboss.org/thread/197649?start=0&tstart=0
> http://pastie.org/3819424 is the call stack showing SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion looping on synchronization which is cleared mid-loop by SynchronizationRegistryImpl.clearSynchronizations

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list