[JBossCache] - Re: Timeout/Lock exception in single user/single thread envi
by doubble
Hi Manik,
I tried to set isolation level to NONE. Thsi works fine for a while, then I'm facing an infinte loop in PessimisticLockInterceptor. Below I'll paste snippets from my log files. In the next post I would like to give you some snippets of my log file in case of isolation level REPEATABLE_READ and READ_COMMITTED. Btw, I tried Ver. 1.2.4 SP2 (?) up to 1.4.1.SP8...
Best regards
Mark
last succesful put to cache here
15:42:32,086 [http-0.0.0.0-8080-1] INFO (7F0328D0587DFF513D9CC23EABAA6B4A) [BspPortalCommandFactory] creating navigation context in global session
15:42:32,086 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [GlobalSession] set: NAVIGATION_CONTEXT to: DefaultNavigationContext[[]] for session [7F0328D0587DFF513D9CC23EABAA6B4A/NAVIGATION_CONTEXT]
15:42:39,821 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] (null) call on method [_put; id:3(GlobalTransaction::6, /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A/NAVIGATION_CONTEXT, NAVIGATION_CONTEXT, DefaultNavigationContext[[]], true)]
15:42:39,821 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] local transaction exists - registering global tx if not present for Thread[http-0.0.0.0-8080-1,5,jboss]
15:42:39,821 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] Associated gtx in txTable is GlobalTransaction::6
15:42:39,821 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=dbn3f84/717, BranchQual=, localId=717] is already registered.
15:42:39,852 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] PessimisticLockInterceptor invoked for method _put; id:3(GlobalTransaction::6, /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A/NAVIGATION_CONTEXT, NAVIGATION_CONTEXT, DefaultNavigationContext[[]], true)
15:42:39,852 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A/NAVIGATION_CONTEXT for owner GlobalTransaction::6
15:42:39,852 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [Node] created child: fqn=/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A/NAVIGATION_CONTEXT
15:42:39,852 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [CallInterceptor] Invoking method _put; id:3(GlobalTransaction::6, /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A/NAVIGATION_CONTEXT, NAVIGATION_CONTEXT, DefaultNavigationContext[[]], true) on cache.
15:42:39,852 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TreeCache] _put(GlobalTransaction::6, "/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A/NAVIGATION_CONTEXT", NAVIGATION_CONTEXT, DefaultNavigationContext[[]])
15:42:52,368 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] (null) call on method [_remove; id:5(GlobalTransaction::6, /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, true)]
15:42:52,368 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] local transaction exists - registering global tx if not present for Thread[http-0.0.0.0-8080-1,5,jboss]
15:42:52,368 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] Associated gtx in txTable is GlobalTransaction::6
15:42:52,368 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=dbn3f84/717, BranchQual=, localId=717] is already registered.
15:42:52,368 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] PessimisticLockInterceptor invoked for method _remove; id:5(GlobalTransaction::6, /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, true)
15:42:52,368 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner GlobalTransaction::6
15:42:52,368 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [CallInterceptor] Invoking method _remove; id:5(GlobalTransaction::6, /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, true) on cache.
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TreeCache] _remove(GlobalTransaction::6, "/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A")
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] (null) call on method [_get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationEvent, true)]
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] PessimisticLockInterceptor invoked for method _get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationEvent, true)
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [CallInterceptor] Invoking method _get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationEvent, true) on cache.
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TreeCache] _get("/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A", navigationEvent, "true")
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [UnlockInterceptor] Attempting to release locks on current thread. Lock table is {}
15:42:52,415 [http-0.0.0.0-8080-1] INFO (7F0328D0587DFF513D9CC23EABAA6B4A) [RvpSessionListener] sessionCreated
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] (null) call on method [_get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationEvent, true)]
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] PessimisticLockInterceptor invoked for method _get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationEvent, true)
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [CallInterceptor] Invoking method _get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationEvent, true) on cache.
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TreeCache] _get("/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A", navigationEvent, "true")
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [UnlockInterceptor] Attempting to release locks on current thread. Lock table is {}
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] (null) call on method [_get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationPath, true)]
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] PessimisticLockInterceptor invoked for method _get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationPath, true)
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [CallInterceptor] Invoking method _get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationPath, true) on cache.
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TreeCache] _get("/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A", navigationPath, "true")
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [UnlockInterceptor] Attempting to release locks on current thread. Lock table is {}
15:42:52,415 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [GlobalSession] get: navigationPath returned:null
15:42:52,430 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] (null) call on method [_get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, MEA_EXCEPTION, true)]
15:42:52,430 [http-0.0.0.0-8080-1] DEBUG
omited loads of gets in between....
15:42:53,321 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:42:53,321 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [CallInterceptor] Invoking method _get; id:26(/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, navigationEvent, true) on cache.
15:42:53,321 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TreeCache] _get("/portalSession/7F0328D0587DFF513D9CC23EABAA6B4A", navigationEvent, "true")
15:42:53,321 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [UnlockInterceptor] Attempting to release locks on current thread. Lock table is {}
15:42:53,383 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [GlobalSession] set: preview to: false for session [7F0328D0587DFF513D9CC23EABAA6B4A]
15:43:01,211 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [TxInterceptor] (null) call on method [_put; id:3(null, /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, preview, false, true)]
15:43:01,211 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] PessimisticLockInterceptor invoked for method _put; id:3(null, /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A, preview, false, true)
15:43:01,211 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,211 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,211 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,211 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,211 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,227 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,227 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,227 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
15:43:01,243 [http-0.0.0.0-8080-1] DEBUG (7F0328D0587DFF513D9CC23EABAA6B4A) [PessimisticLockInterceptor] Attempting to lock node /portalSession/7F0328D0587DFF513D9CC23EABAA6B4A for owner Thread[http-0.0.0.0-8080-1,5,jboss]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122668#4122668
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122668
18 years, 6 months
[Clustering/JBoss] - Re: Load-balancing is not happening in cluster
by azheludkov
Thanks,
Now load balancing works, but some weird issue occurs from time to time.
According to FAQ I created my custom InvokerInterceptor and modified standardjboss.xml to replace JBoss's invoker by my custom one.
When my client makes ejb calls via threads and sometimes I get exceptions like this.
java.lang.NullPointerException
at org.jboss.invocation.unified.interfaces.UnifiedInvokerHAProxy.invoke(UnifiedInvokerHAProxy.java:255)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:176)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy74.submitJob(Unknown Source)
at com.framework.system.cluster.ClusterJobSubmitter$RunInThread.run(ClusterJobSubmitter.java:118)
at java.lang.Thread.run(Thread.java:595)
It looks like ejb instance fail to connect client on return. Ejb instance did its work on remote sevrver.
Do you have any idea why?
Here is a code:
1. Custom Invoker (Jar with compiled invoker was placed in jboss-4.2.2.GA\server\all\lib ).
package com.framework.jboss;
import org.jboss.invocation.*;
public class CustomInvokerInterceptor extends InvokerInterceptor {
public boolean hasLocalTarget(Invocation invocation) {
return false;
}
}
2. Modified piece of standardjboss.xml
<invoker-proxy-binding>
clustered-stateless-unified-invoker
<invoker-mbean>jboss:service=invoker,type=unifiedha</invoker-mbean>
<proxy-factory>org.jboss.proxy.ejb.ProxyFactoryHA</proxy-factory>
<proxy-factory-config>
<client-interceptors>
org.jboss.proxy.ejb.HomeInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.proxy.ejb.SingleRetryInterceptor
<interceptor call-by-value="false">org.jboss.invocation.InvokerInterceptor
<interceptor call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor
org.jboss.proxy.ejb.StatelessSessionInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.proxy.TransactionInterceptor
org.jboss.proxy.ejb.SingleRetryInterceptor
<interceptor call-by-value="false">com.framework.jboss.CustomInvokerInterceptor
<interceptor call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor
</client-interceptors>
</proxy-factory-config>
</invoker-proxy-binding>
3. ClientÃÂâÃÂÃÂÃÂÃÂs snippet of code:
public class ClusterJobSubmitter {
private JobSubmitterHome m_home = null; // ejb home
. . . . . .
public void runJob(Ticket jt) throws Exception {
synchronized (this){
if (m_home==null) {
createEjbHome();
}
}
RunInThread runner = new RunInThread(jt);
Thread thread = new Thread(runner);
thread.start();
}
class RunInThread implements Runnable {
Ticket m_jt=null;
public RunInThread(Ticket jt) {
m_jt= jt;
}
public void run() {
JobSubmitter execute = null; \\ ejb remote stab
try {
synchronized (m_home){
execute = (JobSubmitter) m_home.create();
}
execute.submitJob(m_jt);
} catch (Exception ex) {
ex.printstacktrace();
}
}
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122660#4122660
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122660
18 years, 6 months
[JBoss Seam] - Faces messages not displaying on redirected page
by terryb
faces messages added in observer method for Identity events do not display on redirected (error) page???
but display fine on page which initiated the request (login page in this case).
Seam 2.0.1.CR1
| login.page.xml
| -----------------
| <page conversation-required="false">
| ...
| <navigation from-action="#{identity.login}">
|
| <rule if="#{not identity.loggedIn and orgUserAuthenticate.systemError}">
| <redirect view-id="/error.xhtml"/> <--- messages not display on this redirected page.
| </rule>
| </navigation>
| ...
| </page>
|
| -----------------------------------------
| @Name("orgUserAuthenticate")
| public class OrgUserAuthenticate {
|
| ....
|
| @Observer(Identity.EVENT_LOGIN_SUCCESSFUL)
| public void loginSuccessful() {
|
| //if (orgUserService.setLoginSuccessParams(organisationUser, this)) {
| if (orgUserService.setLoginSuccessParams(organisationUser)) {
|
| orgUserAuthenticated.setUser(organisationUser);
|
| try {
| activityLog.logOrgUser(organisationUser, ActivityLogger.Code.LOGIN_SUCCESSFUL);
| } catch (ActivityLoggerException e) {
|
| identity.logout();
| this.isSystemError = true;
| FacesMessages.instance().getCurrentMessages().clear();
| FacesMessages.instance().addFromResourceBundle(FacesMessage.SEVERITY_ERROR, "au.edu.tisc.SystemErrorWhileLoggingIn", e.getMessage());
| }
|
| } else {
| identity.logout();
| this.isSystemError = true;
| FacesMessages.instance().addFromResourceBundle(FacesMessage.SEVERITY_ERROR, "au.edu.tisc.SystemErrorWhileLoggingIn", "Unable to set user login success parameters.");
| }
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122658#4122658
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122658
18 years, 6 months