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

jboss.org | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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/MyEntity/ENTITY] after [10000] milliseconds for requestor [Thread[main,5,main]]! Lock held by [GlobalTransaction::1]

    Root Cause Analysis

    1. org.jboss.cache.lock.TimeoutException

      Unable to acquire lock on Fqn [/com/foo/MyEntity/ENTITY] after [10000] milliseconds for requestor [Thread[main,5,main]]! Lock held by [GlobalTransaction::1]

      at org.jboss.cache.mvcc.MVCCNodeHelper.acquireLock()
    2. org.jboss.cache
      CacheInvocationDelegate.removeNode
      1. org.jboss.cache.mvcc.MVCCNodeHelper.acquireLock(MVCCNodeHelper.java:159)
      2. org.jboss.cache.mvcc.MVCCNodeHelper.wrapNodesRecursivelyForRemoval(MVCCNodeHelper.java:316)
      3. org.jboss.cache.interceptors.MVCCLockingInterceptor.handleRemoveNodeCommand(MVCCLockingInterceptor.java:116)
      4. org.jboss.cache.interceptors.base.PrePostProcessingCommandInterceptor.visitRemoveNodeCommand(PrePostProcessingCommandInterceptor.java:126)
      5. org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      6. org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      7. org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)
      8. org.jboss.cache.commands.AbstractVisitor.visitRemoveNodeCommand(AbstractVisitor.java:75)
      9. org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      10. org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      11. org.jboss.cache.interceptors.TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:261)
      12. org.jboss.cache.interceptors.TxInterceptor.handleDefault(TxInterceptor.java:250)
      13. org.jboss.cache.commands.AbstractVisitor.visitRemoveNodeCommand(AbstractVisitor.java:75)
      14. org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      15. org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      16. org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)
      17. org.jboss.cache.commands.AbstractVisitor.visitRemoveNodeCommand(AbstractVisitor.java:75)
      18. org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      19. org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      20. org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)
      21. org.jboss.cache.interceptors.InvocationContextInterceptor.visitRemoveNodeCommand(InvocationContextInterceptor.java:88)
      22. org.jboss.cache.commands.write.RemoveNodeCommand.acceptVisitor(RemoveNodeCommand.java:125)
      23. org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:287)
      24. org.jboss.cache.invocation.CacheInvocationDelegate.removeNode(CacheInvocationDelegate.java:409)
      24 frames
    3. org.hibernate.cache
      TransactionalAccess.evictAll
      1. org.hibernate.cache.jbc2.util.CacheHelper.removeAll(CacheHelper.java:378)
      2. org.hibernate.cache.jbc2.util.CacheHelper.removeAll(CacheHelper.java:380)
      3. org.hibernate.cache.jbc2.util.CacheHelper.removeAll(CacheHelper.java:360)
      4. org.hibernate.cache.jbc2.access.TransactionalAccessDelegate.evictOrRemoveAll(TransactionalAccessDelegate.java:146)
      5. org.hibernate.cache.jbc2.access.TransactionalAccessDelegate.evictAll(TransactionalAccessDelegate.java:142)
      6. org.hibernate.cache.jbc2.entity.TransactionalAccess.evictAll(TransactionalAccess.java:102)
      6 frames
    4. 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
    5. Hibernate
      ActionQueue.afterTransactionCompletion
      1. org.hibernate.engine.ActionQueue.afterTransactionCompletion(ActionQueue.java:198)
      1 frame
    6. Hibernate
      SessionImpl.afterTransactionCompletion
      1. org.hibernate.impl.SessionImpl.afterTransactionCompletion(SessionImpl.java:451)
      1 frame
    7. Hibernate
      CacheSynchronization.afterCompletion
      1. org.hibernate.jdbc.JDBCContext.afterTransactionCompletion(JDBCContext.java:252)
      2. org.hibernate.transaction.CacheSynchronization.afterCompletion(CacheSynchronization.java:117)
      2 frames
    8. Transactions JTA
      Sync2Sync.afterCompletion
      1. com.atomikos.icatch.jta.Sync2Sync.afterCompletion(Sync2Sync.java:91)
      1 frame
    9. 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
    10. Atomikos Util
      FSMImp.setState
      1. com.atomikos.finitestates.FSMImp.notifyListeners(FSMImp.java:197)
      2. com.atomikos.finitestates.FSMImp.setState(FSMImp.java:288)
      2 frames
    11. 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
    12. 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
    13. 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