[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-3850) org.jboss.cache.lock.TimeoutException: failure acquiring lock, lock=<unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0)

Strong Liu (JIRA) noreply at atlassian.com
Thu Nov 17 15:17:19 EST 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Strong Liu resolved HHH-3850.
-----------------------------

    Resolution: Out of Date

> org.jboss.cache.lock.TimeoutException: failure acquiring lock, lock=<unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HHH-3850
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3850
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: caching (L2)
>    Affects Versions: 3.2.6
>         Environment: linux , oracle 9.2 jboss 4.2.3
>            Reporter: wu bin
>
> we use hibernate and jboss tree cache in jboss 4.2.3 in lnux.
> we only have 1 node in the cluster.
> we met this exception:
> 19:00:58,515 ERROR [TxInterceptor] method invocation failed
> org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/org/hibernate/cache/UpdateTimestampsCache/LOG_EVENT, caller=GlobalTransaction:<16.173.241.57:9242>:119, lock=<unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
>         at org.jboss.cache.Node.acquire(Node.java:533)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.acquireNodeLock(PessimisticLockInterceptor.java:410)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.lock(PessimisticLockInterceptor.java:322)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:189)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:39)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:568)
>         at org.jboss.cache.interceptors.TxInterceptor.handlePessimisticPrepare(TxInterceptor.java:472)
>         at org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:338)
>         at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:145)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:183)
>         at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5919)
>         at org.jboss.cache.TreeCache._replicate(TreeCache.java:5196)
>         at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:330)
>         at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:281)
>         at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:654)
>         at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:544)
>         at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:367)
>         at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:777)
>         at org.jgroups.JChannel.up(JChannel.java:1091)
>         at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:382)
>         at org.jgroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:398)
>         at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
>         at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:158)
>         at org.jgroups.stack.UpHandler.run(Protocol.java:60)
> Caused by: org.jboss.cache.lock.TimeoutException: write lock for /org/hibernate/cache/UpdateTimestampsCache/LOG_EVENT could not be acquired after 0 ms. Locks: Read lock owners: []
> Write lock owner: Thread[http-8443-14,5,jboss]
>  (caller=GlobalTransaction:<16.173.241.57:9242>:119, lock info: <unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))
>         at org.jboss.cache.lock.IdentityLock.acquireWriteLock(IdentityLock.java:206)
>         at org.jboss.cache.Node.acquireWriteLock(Node.java:562)
>         at org.jboss.cache.Node.acquire(Node.java:509)
>         ... 31 more
> 19:00:58,516 ERROR [TxInterceptor] prepare method invocation failed
> java.lang.RuntimeException: org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/org/hibernate/cache/UpdateTimestampsCache/LOG_EVENT, caller=GlobalTransaction:<16.173.241.57:9242>:119, lock=<unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
>         at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:591)
>         at org.jboss.cache.interceptors.TxInterceptor.handlePessimisticPrepare(TxInterceptor.java:472)
>         at org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:338)
>         at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:145)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:183)
>         at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5919)
>         at org.jboss.cache.TreeCache._replicate(TreeCache.java:5196)
>         at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:330)
>         at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:281)
>         at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:654)
>         at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:544)
>         at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:367)
>         at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:777)
>         at org.jgroups.JChannel.up(JChannel.java:1091)
>         at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:382)
>         at org.jgroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:398)
>         at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
>         at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:158)
>         at org.jgroups.stack.UpHandler.run(Protocol.java:60)
> Caused by: org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/org/hibernate/cache/UpdateTimestampsCache/LOG_EVENT, caller=GlobalTransaction:<16.173.241.57:9242>:119, lock=<unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
>         at org.jboss.cache.Node.acquire(Node.java:533)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.acquireNodeLock(PessimisticLockInterceptor.java:410)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.lock(PessimisticLockInterceptor.java:322)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:189)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:39)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:568)
>         ... 22 more
> Caused by: org.jboss.cache.lock.TimeoutException: write lock for /org/hibernate/cache/UpdateTimestampsCache/LOG_EVENT could not be acquired after 0 ms. Locks: Read lock owners: []
> Write lock owner: Thread[http-8443-14,5,jboss]
>  (caller=GlobalTransaction:<16.173.241.57:9242>:119, lock info: <unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))
>         at org.jboss.cache.lock.IdentityLock.acquireWriteLock(IdentityLock.java:206)
>         at org.jboss.cache.Node.acquireWriteLock(Node.java:562)
>         at org.jboss.cache.Node.acquire(Node.java:509)
>         ... 31 more
> 19:00:58,516 WARN  [TreeCache] replication failure with method_call prepare; id:10; Args: ( arg[0] = GlobalTransaction:<16.173.241.57:9242>:119 ...) exception
> java.lang.RuntimeException: org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/org/hibernate/cache/UpdateTimestampsCache/LOG_EVENT, caller=GlobalTransaction:<16.173.241.57:9242>:119, lock=<unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
>         at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:591)
>         at org.jboss.cache.interceptors.TxInterceptor.handlePessimisticPrepare(TxInterceptor.java:472)
>         at org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:338)
>         at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:145)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:183)
>         at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5919)
>         at org.jboss.cache.TreeCache._replicate(TreeCache.java:5196)
>         at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:330)
>         at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:281)
>         at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:654)
>         at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:544)
>         at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:367)
>         at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:777)
>         at org.jgroups.JChannel.up(JChannel.java:1091)
>         at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:382)
>         at org.jgroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:398)
>         at org.jgroups.stack.Protocol.passUp(Protocol.java:520)
>         at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:158)
>         at org.jgroups.stack.UpHandler.run(Protocol.java:60)
> Caused by: org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/org/hibernate/cache/UpdateTimestampsCache/LOG_EVENT, caller=GlobalTransaction:<16.173.241.57:9242>:119, lock=<unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0)
>         at org.jboss.cache.Node.acquire(Node.java:533)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.acquireNodeLock(PessimisticLockInterceptor.java:410)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.lock(PessimisticLockInterceptor.java:322)
>         at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:189)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:39)
>         at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
>         at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:568)
>         ... 22 more
> Caused by: org.jboss.cache.lock.TimeoutException: write lock for /org/hibernate/cache/UpdateTimestampsCache/LOG_EVENT could not be acquired after 0 ms. Locks: Read lock owners: []
> Write lock owner: Thread[http-8443-14,5,jboss]
>  (caller=GlobalTransaction:<16.173.241.57:9242>:119, lock info: <unlocked> (activeReaders=0, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))
>         at org.jboss.cache.lock.IdentityLock.acquireWriteLock(IdentityLock.java:206)
>         at org.jboss.cache.Node.acquireWriteLock(Node.java:562)
>         at org.jboss.cache.Node.acquire(Node.java:509)
>         ... 31 more

--
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