org.hibernate.cache.CacheException: org.jboss.cache.lock.TimeoutException: Unable to acquire lock on Fqn [/com/foo/Bar/ENTITY] after [10000] milliseconds for requestor [Thread[main,5,main]]! Lock held by [GlobalTransaction::2]

jboss.org | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    JBossCache Deadlock in Hibernate BulkOperationC... | JBoss Developer

    jboss.org | 7 months ago
    org.hibernate.cache.CacheException: org.jboss.cache.lock.TimeoutException: Unable to acquire lock on Fqn [/com/foo/Bar/ENTITY] after [10000] milliseconds for requestor [Thread[main,5,main]]! Lock held by [GlobalTransaction::2]

    1 unregistered visitors

    Root Cause Analysis

    1. org.hibernate.cache.CacheException

      org.jboss.cache.lock.TimeoutException: Unable to acquire lock on Fqn [/com/foo/Bar/ENTITY] after [10000] milliseconds for requestor [Thread[main,5,main]]! Lock held by [GlobalTransaction::2]

      at org.hibernate.cache.jbc2.util.CacheHelper.removeAll()
    2. org.hibernate.cache
      TransactionalAccess.evictAll
      1. org.hibernate.cache.jbc2.util.CacheHelper.removeAll(CacheHelper.java:380)
      2. org.hibernate.cache.jbc2.util.CacheHelper.removeAll(CacheHelper.java:360)
      3. org.hibernate.cache.jbc2.access.TransactionalAccessDelegate.evictOrRemoveAll(TransactionalAccessDelegate.java:146)
      4. org.hibernate.cache.jbc2.access.TransactionalAccessDelegate.evictAll(TransactionalAccessDelegate.java:142)
      5. org.hibernate.cache.jbc2.entity.TransactionalAccess.evictAll(TransactionalAccess.java:102)
      5 frames
    3. Hibernate
      BulkOperationCleanupAction.afterTransactionCompletion
      1. org.hibernate.impl.SessionFactoryImpl.evictEntity(SessionFactoryImpl.java:870)
      2. org.hibernate.action.BulkOperationCleanupAction.evictEntityRegions(BulkOperationCleanupAction.java:153)
      3. org.hibernate.action.BulkOperationCleanupAction.afterTransactionCompletion(BulkOperationCleanupAction.java:132)
      3 frames
    4. Hibernate
      ActionQueue.afterTransactionCompletion
      1. org.hibernate.engine.ActionQueue.afterTransactionCompletion(ActionQueue.java:198)
      1 frame
    5. Hibernate
      SessionImpl.afterTransactionCompletion
      1. org.hibernate.impl.SessionImpl.afterTransactionCompletion(SessionImpl.java:451)
      1 frame
    6. Hibernate
      CacheSynchronization.afterCompletion
      1. org.hibernate.jdbc.JDBCContext.afterTransactionCompletion(JDBCContext.java:252)
      2. org.hibernate.transaction.CacheSynchronization.afterCompletion(CacheSynchronization.java:117)
      2 frames
    7. Transactions JTA
      Sync2Sync.afterCompletion
      1. com.atomikos.icatch.jta.Sync2Sync.afterCompletion(Sync2Sync.java:91)
      1 frame
    8. Transactions Core
      SynchToFSM.entered
      1. com.atomikos.icatch.imp.SynchToFSM.doAfterCompletion(SynchToFSM.java:38)
      2. com.atomikos.icatch.imp.SynchToFSM.entered(SynchToFSM.java:59)
      2 frames
    9. Atomikos Util
      FSMImp.setState
      1. com.atomikos.finitestates.FSMImp.notifyListeners(FSMImp.java:197)
      2. com.atomikos.finitestates.FSMImp.setState(FSMImp.java:288)
      2 frames
    10. Transactions Core
      CompositeTerminatorImp.commit
      1. com.atomikos.icatch.imp.CoordinatorImp.setState(CoordinatorImp.java:481)
      2. com.atomikos.icatch.imp.CoordinatorImp.setStateHandler(CoordinatorImp.java:312)
      3. com.atomikos.icatch.imp.CoordinatorStateHandler.commit(CoordinatorStateHandler.java:730)
      4. com.atomikos.icatch.imp.IndoubtStateHandler.commit(IndoubtStateHandler.java:225)
      5. com.atomikos.icatch.imp.CoordinatorImp.commit(CoordinatorImp.java:807)
      6. com.atomikos.icatch.imp.CoordinatorImp.terminate(CoordinatorImp.java:1106)
      7. com.atomikos.icatch.imp.CompositeTerminatorImp.commit(CompositeTerminatorImp.java:151)
      7 frames
    11. Transactions JTA
      UserTransactionImp.commit
      1. com.atomikos.icatch.jta.TransactionImp.commit(TransactionImp.java:297)
      2. com.atomikos.icatch.jta.TransactionManagerImp.commit(TransactionManagerImp.java:608)
      3. com.atomikos.icatch.jta.UserTransactionImp.commit(UserTransactionImp.java:168)
      3 frames
    12. Spring Tx
      AbstractPlatformTransactionManager.commit
      1. org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1028)
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:709)
      3. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:678)
      3 frames