java.lang.AssertionError: LockID(@1046), Level: READ (1)^M Holders (0)^M Wait Set (0)^M Pending lock requests (5)^M Request@16023954[ClientID[0],ThreadID=[55],level=WRITE (2)]^M Request@6736114[ClientID[1],ThreadID=[49],level=READ (1)]^M Request@1215270[ClientID[0],ThreadID=[30],level=READ (1)]^M Request@23957434[ClientID[0],ThreadID=[12],level=READ (1)]^M Request@32977775[ClientID[1],ThreadID=[5],level=WRITE (2)]^M : This lock is not held in this ServerThreadContext ! Locks Held = []

Terracotta | bvanberg | 9 years ago
  1. 0

    Terracotta Server Crashes

    Terracotta | 9 years ago | bvanberg
    java.lang.AssertionError: LockID(@1046), Level: READ (1)^M Holders (0)^M Wait Set (0)^M Pending lock requests (5)^M Request@16023954[ClientID[0],ThreadID=[55],level=WRITE (2)]^M Request@6736114[ClientID[1],ThreadID=[49],level=READ (1)]^M Request@1215270[ClientID[0],ThreadID=[30],level=READ (1)]^M Request@23957434[ClientID[0],ThreadID=[12],level=READ (1)]^M Request@32977775[ClientID[1],ThreadID=[5],level=WRITE (2)]^M : This lock is not held in this ServerThreadContext ! Locks Held = []
  2. 0

    java.lang.AssertionError: Assert Failed : ServerThreadContext@1883389[ServerThreadID{ClientID[0],ThreadID=[1]}](HELD-LOCKS={[]}, WAITING-ON={ LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] }) : old = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] : new = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] at com.tc.objectserver.lockmanager.impl.ServerThreadContext.setWaitingOn(ServerThreadContext.java:82) at com.tc.objectserver.lockmanager.impl.Lock.addPending(Lock.java:357) at com.tc.objectserver.lockmanager.impl.Lock.addPendingTryLockRequest(Lock.java:328) at com.tc.objectserver.lockmanager.impl.Lock.queueRequest(Lock.java:291) at com.tc.objectserver.lockmanager.impl.Lock.requestLock(Lock.java:252) at com.tc.objectserver.lockmanager.impl.Lock.tryRequestLock(Lock.java:201) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.basicRequestLock(LockManagerImpl.java:196) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.requestLock(LockManagerImpl.java:180) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.tryRequestLock(LockManagerImpl.java:168) at com.tc.objectserver.handler.RequestLockUnLockHandler.handleEvent(RequestLockUnLockHandler.java:39) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:142) Attached is a repro case - download to local directory. $ javac Main.java $ start-tc-server.sh $ dso-java Main $ dso-java Main on second dso invocation, server will assert.

    Terracotta Project Issue Tracker | 9 years ago | Taylor Gautier
    java.lang.AssertionError: Assert Failed : ServerThreadContext@1883389[ServerThreadID{ClientID[0],ThreadID=[1]}](HELD-LOCKS={[]}, WAITING-ON={ LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] }) : old = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] : new = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)]
  3. 0

    java.lang.AssertionError: Assert Failed : ServerThreadContext@1883389[ServerThreadID{ClientID[0],ThreadID=[1]}](HELD-LOCKS={[]}, WAITING-ON={ LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] }) : old = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] : new = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] at com.tc.objectserver.lockmanager.impl.ServerThreadContext.setWaitingOn(ServerThreadContext.java:82) at com.tc.objectserver.lockmanager.impl.Lock.addPending(Lock.java:357) at com.tc.objectserver.lockmanager.impl.Lock.addPendingTryLockRequest(Lock.java:328) at com.tc.objectserver.lockmanager.impl.Lock.queueRequest(Lock.java:291) at com.tc.objectserver.lockmanager.impl.Lock.requestLock(Lock.java:252) at com.tc.objectserver.lockmanager.impl.Lock.tryRequestLock(Lock.java:201) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.basicRequestLock(LockManagerImpl.java:196) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.requestLock(LockManagerImpl.java:180) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.tryRequestLock(LockManagerImpl.java:168) at com.tc.objectserver.handler.RequestLockUnLockHandler.handleEvent(RequestLockUnLockHandler.java:39) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:142) Attached is a repro case - download to local directory. $ javac Main.java $ start-tc-server.sh $ dso-java Main $ dso-java Main on second dso invocation, server will assert.

    Terracotta Project Issue Tracker | 9 years ago | Taylor Gautier
    java.lang.AssertionError: Assert Failed : ServerThreadContext@1883389[ServerThreadID{ClientID[0],ThreadID=[1]}](HELD-LOCKS={[]}, WAITING-ON={ LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] }) : old = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] : new = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unexpected method call Exception in powermock

    tagwith.com | 1 year ago
    java.lang.AssertionError: Unexpected method call Proxy.doOperation({clientId=123456}, ""): Proxy.doOperation({}, null): expected: 1, actual: 0
  6. 0

    Unexpected method call Exception in powermock

    Stack Overflow | 2 years ago | slowhandblues
    java.lang.AssertionError: Unexpected method call Proxy.doOperation({clientId=123456}, ""): Proxy.doOperation({}, null): expected: 1, actual: 0

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.AssertionError

      LockID(@1046), Level: READ (1)^M Holders (0)^M Wait Set (0)^M Pending lock requests (5)^M Request@16023954[ClientID[0],ThreadID=[55],level=WRITE (2)]^M Request@6736114[ClientID[1],ThreadID=[49],level=READ (1)]^M Request@1215270[ClientID[0],ThreadID=[30],level=READ (1)]^M Request@23957434[ClientID[0],ThreadID=[12],level=READ (1)]^M Request@32977775[ClientID[1],ThreadID=[5],level=WRITE (2)]^M : This lock is not held in this ServerThreadContext ! Locks Held = []

      at com.tc.objectserver.lockmanager.impl.ServerThreadContext.removeLock()
    2. com.tc.objectserver
      RequestLockUnLockHandler.handleEvent
      1. com.tc.objectserver.lockmanager.impl.ServerThreadContext.removeLock(ServerThreadContext.java:71)
      2. com.tc.objectserver.lockmanager.impl.Lock.removeCurrentHold(Lock.java:883)
      3. com.tc.objectserver.lockmanager.impl.LockManagerImpl.basicUnlock(LockManagerImpl.java:368)
      4. com.tc.objectserver.lockmanager.impl.LockManagerImpl.unlock(LockManagerImpl.java:249)
      5. com.tc.objectserver.handler.RequestLockUnLockHandler.handleEvent(RequestLockUnLockHandler.java:44)
      5 frames
    3. com.tc.async
      StageImpl$WorkerThread.run
      1. com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:142)
      1 frame