1 2 Previous Next 15 Replies Latest reply on Aug 18, 2008 9:00 AM by Matteo Ridolfi

    Session is being expired when one of the cluster is set down

    praveena chalamcharla Newbie

      Hi,

      I am once again back to the clustering issue. I am trying to cluster 2 jboss instances (jboss - 4.2.2.GA) over an apache(httpd 2.0.61) load balancer. When I one of the instance set down, then the other node is unable store the session, with the following stack trace. Please let me know where exactly the problem might be. I ve checked the options of load balancing. Please go through the stack trace recorded by the server.log




      2008-07-23 20:07:14,129 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@25982928, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:199, tx=org.jboss.cache.transaction.DummyTransaction@25982928)]
      2008-07-23 20:07:14,129 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@25982928, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:199, tx=org.jboss.cache.transaction.DummyTransaction@25982928)]
      2008-07-23 20:07:14,129 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,129 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:199
      2008-07-23 20:07:14,129 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,129 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session D1CA48C2BA26664FC38ACD4B43182D4A not found in distributed cache
      2008-07-23 20:07:14,129 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node1 jvmRoute: node2
      2008-07-23 20:07:14,129 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] handleJvmRoute(): We have detected a failover with different jvmRoute. old one: node1 new one: node2. Will reset the session id.
      2008-07-23 20:07:14,129 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] resetSessionId(): changed catalina session to= [D1CA48C2BA26664FC38ACD4B43182D4A.node2] old one= [D1CA48C2BA26664FC38ACD4B43182D4A.node1]
      2008-07-23 20:07:14,129 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Setting cookie with session id:D1CA48C2BA26664FC38ACD4B43182D4A.node2 & name:JSESSIONID
      2008-07-23 20:07:14,158 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
      2008-07-23 20:07:14,158 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-3,5,jboss]
      2008-07-23 20:07:14,158 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@27894836, handlers=[]
      2008-07-23 20:07:14,158 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@27894836, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:200, tx=org.jboss.cache.transaction.DummyTransaction@27894836)]
      2008-07-23 20:07:14,159 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@27894836, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:200, tx=org.jboss.cache.transaction.DummyTransaction@27894836)]
      2008-07-23 20:07:14,159 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,159 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:200
      2008-07-23 20:07:14,159 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,159 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session 7838D198F34E9FF8BF4BE849986D3B18 not found in distributed cache
      2008-07-23 20:07:14,159 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node2 jvmRoute: node2
      2008-07-23 20:07:14,159 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
      2008-07-23 20:07:14,159 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-2,5,jboss]
      2008-07-23 20:07:14,159 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@5986541, handlers=[]
      2008-07-23 20:07:14,160 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@5986541, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:201, tx=org.jboss.cache.transaction.DummyTransaction@5986541)]
      2008-07-23 20:07:14,160 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@5986541, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:201, tx=org.jboss.cache.transaction.DummyTransaction@5986541)]
      2008-07-23 20:07:14,160 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,160 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:201
      2008-07-23 20:07:14,160 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,160 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session 7838D198F34E9FF8BF4BE849986D3B18 not found in distributed cache
      2008-07-23 20:07:14,160 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node2 jvmRoute: node2
      2008-07-23 20:07:14,217 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
      2008-07-23 20:07:14,217 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-4,5,jboss]
      2008-07-23 20:07:14,217 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@10352182, handlers=[]
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@10352182, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:202, tx=org.jboss.cache.transaction.DummyTransaction@10352182)]
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@10352182, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:202, tx=org.jboss.cache.transaction.DummyTransaction@10352182)]
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:202
      2008-07-23 20:07:14,218 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,218 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session 7838D198F34E9FF8BF4BE849986D3B18 not found in distributed cache
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-2,5,jboss]
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-4,5,jboss]
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@9409054, handlers=[]
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@29490218, handlers=[]
      2008-07-23 20:07:14,218 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@9409054, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:203, tx=org.jboss.cache.transaction.DummyTransaction@9409054)]
      2008-07-23 20:07:14,228 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@9409054, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:203, tx=org.jboss.cache.transaction.DummyTransaction@9409054)]
      2008-07-23 20:07:14,228 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,228 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:203
      2008-07-23 20:07:14,228 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,228 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session 7838D198F34E9FF8BF4BE849986D3B18 not found in distributed cache
      2008-07-23 20:07:14,228 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node1 jvmRoute: node2
      2008-07-23 20:07:14,228 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] handleJvmRoute(): We have detected a failover with different jvmRoute. old one: node1 new one: node2. Will reset the session id.
      2008-07-23 20:07:14,228 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] resetSessionId(): changed catalina session to= [D1CA48C2BA26664FC38ACD4B43182D4A.node2] old one= [D1CA48C2BA26664FC38ACD4B43182D4A.node1]
      2008-07-23 20:07:14,228 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Setting cookie with session id:D1CA48C2BA26664FC38ACD4B43182D4A.node2 & name:JSESSIONID
      2008-07-23 20:07:14,275 ERROR [org.jboss.web.tomcat.service.session.JBossCacheService] loadSession(): id: D1CA48C2BA26664FC38ACD4B43182D4A exception occurred during deserialization
      java.lang.ClassNotFoundException: No ClassLoaders found for: nextapp.echo2.app.FillImage
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:265)
      at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:622)
      at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:109)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1593)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1642)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at java.util.HashMap.readObject(HashMap.java:1048)
      at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at java.util.HashMap.readObject(HashMap.java:1048)
      at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1312)
      at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.readExternal(SessionBasedClusteredSession.java:154)
      at org.jboss.web.tomcat.service.session.JBossCacheService.loadSession(JBossCacheService.java:278)
      at org.jboss.web.tomcat.service.session.JBossCacheManager.loadSession(JBossCacheManager.java:1010)
      at org.jboss.web.tomcat.service.session.JBossCacheManager.findSession(JBossCacheManager.java:796)
      at org.apache.catalina.connector.Request.doGetSession(Request.java:2283)
      at org.apache.catalina.connector.Request.getSession(Request.java:2075)
      at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:91)
      at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:81)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
      at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:675)
      2008-07-23 20:07:14,276 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@29490218, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:204, tx=org.jboss.cache.transaction.DummyTransaction@29490218)]
      2008-07-23 20:07:14,276 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@29490218, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:204, tx=org.jboss.cache.transaction.DummyTransaction@29490218)]
      2008-07-23 20:07:14,276 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,276 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:204
      2008-07-23 20:07:14,276 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,276 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session D1CA48C2BA26664FC38ACD4B43182D4A not found in distributed cache
      2008-07-23 20:07:14,276 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node2 jvmRoute: node2
      2008-07-23 20:07:14,339 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
      2008-07-23 20:07:14,339 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-6,5,jboss]
      2008-07-23 20:07:14,339 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@11142399, handlers=[]
      2008-07-23 20:07:14,339 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@11142399, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:205, tx=org.jboss.cache.transaction.DummyTransaction@11142399)]
      2008-07-23 20:07:14,339 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@11142399, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:205, tx=org.jboss.cache.transaction.DummyTransaction@11142399)]
      2008-07-23 20:07:14,339 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,339 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:205
      2008-07-23 20:07:14,339 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,339 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session 7838D198F34E9FF8BF4BE849986D3B18 not found in distributed cache
      2008-07-23 20:07:14,339 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node2 jvmRoute: node2
      2008-07-23 20:07:14,803 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
      2008-07-23 20:07:14,803 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-5,5,jboss]
      2008-07-23 20:07:14,803 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@7238087, handlers=[]
      2008-07-23 20:07:14,803 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@7238087, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:206, tx=org.jboss.cache.transaction.DummyTransaction@7238087)]
      2008-07-23 20:07:14,803 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@7238087, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:206, tx=org.jboss.cache.transaction.DummyTransaction@7238087)]
      2008-07-23 20:07:14,804 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,804 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:206
      2008-07-23 20:07:14,804 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,804 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session 7838D198F34E9FF8BF4BE849986D3B18 not found in distributed cache
      2008-07-23 20:07:14,804 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-5,5,jboss]
      2008-07-23 20:07:14,804 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@15716467, handlers=[]
      2008-07-23 20:07:14,806 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
      2008-07-23 20:07:14,807 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-3,5,jboss]
      2008-07-23 20:07:14,807 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@6178853, handlers=[]
      2008-07-23 20:07:14,807 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@6178853, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:208, tx=org.jboss.cache.transaction.DummyTransaction@6178853)]
      2008-07-23 20:07:14,807 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@6178853, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:208, tx=org.jboss.cache.transaction.DummyTransaction@6178853)]
      2008-07-23 20:07:14,807 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,807 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:208
      2008-07-23 20:07:14,807 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,807 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session 7838D198F34E9FF8BF4BE849986D3B18 not found in distributed cache
      2008-07-23 20:07:14,807 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node1 jvmRoute: node2
      2008-07-23 20:07:14,807 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] handleJvmRoute(): We have detected a failover with different jvmRoute. old one: node1 new one: node2. Will reset the session id.
      2008-07-23 20:07:14,807 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] resetSessionId(): changed catalina session to= [D1CA48C2BA26664FC38ACD4B43182D4A.node2] old one= [D1CA48C2BA26664FC38ACD4B43182D4A.node1]
      2008-07-23 20:07:14,807 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Setting cookie with session id:D1CA48C2BA26664FC38ACD4B43182D4A.node2 & name:JSESSIONID
      2008-07-23 20:07:14,855 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Looking for sessions that have expired ...
      2008-07-23 20:07:14,855 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Looking for sessions that have expired ...
      2008-07-23 20:07:14,858 ERROR [org.jboss.web.tomcat.service.session.JBossCacheService] loadSession(): id: D1CA48C2BA26664FC38ACD4B43182D4A exception occurred during deserialization
      java.lang.ClassNotFoundException: No ClassLoaders found for: nextapp.echo2.app.FillImage
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:265)
      at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:622)
      at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:109)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1593)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1642)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at java.util.HashMap.readObject(HashMap.java:1048)
      at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at java.util.HashMap.readObject(HashMap.java:1048)
      at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1312)
      at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.readExternal(SessionBasedClusteredSession.java:154)
      at org.jboss.web.tomcat.service.session.JBossCacheService.loadSession(JBossCacheService.java:278)
      at org.jboss.web.tomcat.service.session.JBossCacheManager.loadSession(JBossCacheManager.java:1010)
      at org.jboss.web.tomcat.service.session.JBossCacheManager.findSession(JBossCacheManager.java:796)
      at org.apache.catalina.connector.Request.doGetSession(Request.java:2283)
      at org.apache.catalina.connector.Request.getSession(Request.java:2075)
      at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:91)
      at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:81)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
      at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:675)
      2008-07-23 20:07:14,859 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@15716467, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:207, tx=org.jboss.cache.transaction.DummyTransaction@15716467)]
      2008-07-23 20:07:14,859 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@15716467, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:207, tx=org.jboss.cache.transaction.DummyTransaction@15716467)]
      2008-07-23 20:07:14,859 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:14,859 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:207
      2008-07-23 20:07:14,859 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:14,859 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session D1CA48C2BA26664FC38ACD4B43182D4A not found in distributed cache
      2008-07-23 20:07:14,859 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node2 jvmRoute: node2
      2008-07-23 20:07:15,318 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Creating an empty ClusteredSession
      2008-07-23 20:07:15,318 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-10.20.220.135-8009-7,5,jboss]
      2008-07-23 20:07:15,319 DEBUG [org.jboss.cache.transaction.DummyTransaction] registering synchronization handler tx=org.jboss.cache.transaction.DummyTransaction@1371136, handlers=[]
      2008-07-23 20:07:15,319 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing beforeCompletion for tx=org.jboss.cache.transaction.DummyTransaction@1371136, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:210, tx=org.jboss.cache.transaction.DummyTransaction@1371136)]
      2008-07-23 20:07:15,319 DEBUG [org.jboss.cache.transaction.DummyTransaction] processing afterCompletion for tx=org.jboss.cache.transaction.DummyTransaction@1371136, handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.20.220.135:33181>:210, tx=org.jboss.cache.transaction.DummyTransaction@1371136)]
      2008-07-23 20:07:15,319 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? true
      2008-07-23 20:07:15,319 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<10.20.220.135:33181>:210
      2008-07-23 20:07:15,319 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase
      2008-07-23 20:07:15,319 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): session 7838D198F34E9FF8BF4BE849986D3B18 not found in distributed cache
      2008-07-23 20:07:15,319 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: D1CA48C2BA26664FC38ACD4B43182D4A.node2 jvmRoute: node2
      2008-07-23 20:07:15,319 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] handleJvmRoute(): We have detected a failover with different jvmRoute. received one: node1 new one: node2. Will resent the session id.



      Thank you very much in advance.



        • 1. Re: Session is being expired when one of the cluster is set
          praveena chalamcharla Newbie

          Hi all,

          Please find the following stack trace in the command console

          Very thanks for your patience.


          20:07:13,538 ERROR [[CCCServlet]] Servlet.service() for servlet CCCServlet threw exception
          javax.servlet.ServletException: Service id "12fca35_11b505d417a_1" not registered.
          at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:253)
          at nextapp.echo2.webrender.WebRenderServlet.doGet(WebRenderServlet.java:179)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
          at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:87)
          at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
          at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
          at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
          at java.lang.Thread.run(Thread.java:675)
          20:07:13,623 INFO [CacheListener] Possible concurrency problem: Replicated version id 72 matches in-memory version for session D1CA48C2BA26664FC38ACD4B43182D4A
          20:07:13,808 ERROR [JBossCacheService] loadSession(): id: D1CA48C2BA26664FC38ACD4B43182D4A exception occurred during deserialization
          java.lang.ClassNotFoundException: No ClassLoaders found for: nextapp.echo2.app.FillImage
          at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
          at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
          at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:265)
          at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:622)
          at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:109)
          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1593)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
          at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1642)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
          at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
          at java.util.HashMap.readObject(HashMap.java:1048)
          at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:623)
          at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
          at java.util.HashMap.readObject(HashMap.java:1048)
          at sun.reflect.GeneratedMethodAccessor234.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:623)
          at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
          at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
          at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1312)
          at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:623)
          at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
          at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.readExternal(SessionBasedClusteredSession.java:154)
          at org.jboss.web.tomcat.service.session.JBossCacheService.loadSession(JBossCacheService.java:278)
          at org.jboss.web.tomcat.service.session.JBossCacheManager.loadSession(JBossCacheManager.java:1010)
          at org.jboss.web.tomcat.service.session.JBossCacheManager.findSession(JBossCacheManager.java:796)
          at org.apache.catalina.connector.Request.doGetSession(Request.java:2283)
          at org.apache.catalina.connector.Request.getSession(Request.java:2075)
          at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:91)
          at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:81)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
          at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
          at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
          at java.lang.Thread.run(Thread.java:675)

          • 2. Re: Session is being expired when one of the cluster is set
            Matteo Ridolfi Newbie

            Praveenas,
            I have the same problem

            http://www.jboss.com/index.html?module=bb&op=viewtopic&t=139599

            tried all kind of configurations but nothing solved the issue.

            If you find any solution give me a shout.

            Matteo

            • 3. Re: Session is being expired when one of the cluster is set
              praveena chalamcharla Newbie

              Hi,
              May I know what exactly is your problem? can you brief it out with details?



              • 4. Session is being expired when one of the cluster is set down
                praveena chalamcharla Newbie


                Hi all, Please have a closer look about this.

                Here is a stack trace which is creating the major problem. I ve all the related jars in the lib directory and the application is running cool on single machine. Please let me know what exactly the problem would be. Thank you for your patience.


                11:19:48,748 ERROR [JBossCacheService] loadSession(): id: D1CA48C2BA26664FC38ACD4B43182D4A exception occurred during deserialization
                java.lang.ClassNotFoundException: No ClassLoaders found for: nextapp.echo2.app.FillImage
                at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
                at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
                at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
                at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:337)
                at java.lang.Class.forName0(Native Method)
                at java.lang.Class.forName(Class.java:265)
                at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:622)
                at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:109)
                at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1593)
                at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1642)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1685)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1341)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
                at java.util.HashMap.readObject(HashMap.java:1048)
                at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:623)
                at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
                at java.util.HashMap.readObject(HashMap.java:1048)
                at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:623)
                at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
                at java.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1312)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:623)
                at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:992)
                at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
                at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
                at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
                at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
                at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.readExternal(SessionBasedClusteredSession.java:154)
                at org.jboss.web.tomcat.service.session.JBossCacheService.loadSession(JBossCacheService.java:278)
                at org.jboss.web.tomcat.service.session.JBossCacheManager.loadSession(JBossCacheManager.java:1010)
                at org.jboss.web.tomcat.service.session.JBossCacheManager.findSession(JBossCacheManager.java:796)
                at org.apache.catalina.connector.Request.doGetSession(Request.java:2283)
                at org.apache.catalina.connector.Request.getSession(Request.java:2075)
                at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:91)
                at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:81)
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
                at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                at java.lang.Thread.run(Thread.java:675)

                • 5. Re: Session is being expired when one of the cluster is set
                  Matteo Ridolfi Newbie

                  Hi,
                  my problem is basically the same of yours. As I said in my post
                  http://www.jboss.com/index.html?module=bb&op=viewtopic&t=139599

                  the sessions don't seem to replicate correctly.

                  I had the ClassNotFoundException at first sight, and I put the jar files in the lib directory (even if they are inside the application war file and the application is working perfectly on one node).
                  At that point the ClassNotFoundException disappeared but I got java.lang.ArrayStoreException becasue the session is dirty.

                  What I also did is debugging the session, first on the node I'm logged in and then on the recovery node where I get the exception.

                  The session attributes appears different, and that's what is causing the exception. In particular sessionMetadataDirty, this is false on the first node and true on the other.

                  I tried all the different replica combinations and replication-triggers but nothing changed the situation.


                  Matteo

                  • 7. Re: Session is being expired when one of the cluster is set
                    praveena chalamcharla Newbie

                    Hi,
                    Just keep a copy of all your applciation jar files which are available under WEB-INF/lib, to the Jboss_home/Server/all/lib.

                    This may avoid ur problem.

                    • 8. Re: Session is being expired when one of the cluster is set
                      Matteo Ridolfi Newbie

                      I don't think that's the right approach, the application should work with its own libs.

                      Anyway, that trick avoids the java.lang.ClassNotFoundException but not the java.lang.ArrayStoreException.

                      The session is still dirty.

                      I'll try to deploy a jboss 5 cluster by today. We'll see.

                      • 9. Re: Session is being expired when one of the cluster is set
                        praveena chalamcharla Newbie

                        Thats right!!
                        The clustering is being deviated. Anyway, pl update me if anything updated?? Me too will do the same..













                        Thank you..

                        • 10. Re: Session is being expired when one of the cluster is set
                          Matteo Ridolfi Newbie

                          I will do that, I'm kinda worried that nobody has the same issue...why?!

                          • 12. Re: Session is being expired when one of the cluster is set
                            Matteo Ridolfi Newbie

                            praveenas,
                            did you find any solution to the problem ?

                            • 13. Re: Session is being expired when one of the cluster is set
                              praveena chalamcharla Newbie


                              spezam,
                              So far I could not find any solution for this error. But, for a great surprise, I could cluster some other sample applications successfully.

                              Let me know the technologies or frameworks you have used in building ur application.

                              • 14. Re: Session is being expired when one of the cluster is set
                                Matteo Ridolfi Newbie

                                pravvenas,

                                the session is managed by spring framework and spring security ACEGI.

                                It's so bad that nobody knows about this issue... :(

                                1 2 Previous Next