1 Reply Latest reply on Oct 22, 2013 9:30 AM by Radoslav Husar

    Application session replication giving problems in JBoss7.1.1 cluster

    Varaprasad Mutyala Newbie

      Hi,

       

      I am getting following excpetion when i am deploying an application. I want session to be replicated across all nodes of jboss cluster. But its not working.

       

      [Server:server-one] 05:14:32,152 ERROR [org.infinispan.cacheviews.CacheViewsManagerImpl] (CacheViewInstaller-8,node3:server-one/web) ISPN000172: Failed to prepare view Ca

      ewId=8, members=[node3:server-one/web, node1:server-one/web]} for cache  //default-host//TechIntegrationTest, rolling back to view CacheView{viewId=7, members=[node3:serv

      ]}: java.util.concurrent.TimeoutException

      [Server:server-one]     at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228) [rt.jar:1.6.0_35]

      [Server:server-one]     at java.util.concurrent.FutureTask.get(FutureTask.java:91) [rt.jar:1.6.0_35]

      [Server:server-one]     at org.infinispan.cacheviews.CacheViewsManagerImpl.clusterPrepareView(CacheViewsManagerImpl.java:322) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL

      [Server:server-one]     at org.infinispan.cacheviews.CacheViewsManagerImpl.clusterInstallView(CacheViewsManagerImpl.java:250) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL

      [Server:server-one]     at org.infinispan.cacheviews.CacheViewsManagerImpl$ViewInstallationTask.call(CacheViewsManagerImpl.java:876) [infinispan-core-5.1.2.FINAL.jar:5.1.

      [Server:server-one]     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_35]

      [Server:server-one]     at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_35]

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]

      [Server:server-one]     at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]

      [Server:server-one]

      [Server:server-one] 05:14:35,958 INFO  [org.jboss.as.server] (host-controller-connection-threads - 1) JBAS018559: Deployed "TechIntegrationTest.war"

      [Server:server-one] 05:15:24,661 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/TechIntegrationTest].[zkLoader]] (ajp--192.168.97.159-8009-1)

      rvice() for servlet zkLoader threw exception: java.lang.IllegalArgumentException: JBAS018062: Specified attribute cannot be replicated

      [Server:server-one]     at org.jboss.as.web.session.ClusteredSession.setAttribute(ClusteredSession.java:807) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.zkoss.zk.ui.http.SessionAgent.put(SessionAgent.java:30) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.http.SimpleSessionCache.put(SimpleSessionCache.java:36) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:158) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:433) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:414) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:126) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      [Server:server-one]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.jsp.views.jsp.zkgrid_jsp._jspService(zkgrid_jsp.java:54)

      [Server:server-one]     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      [Server:server-one]     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:96) [struts2-core-2.3.15.jar:

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:67)

      [Server:server-one]     at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:48)

      [Server:server-one]     at org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:125) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:91) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:88) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.jboss.as.web.session.LockingValve.invoke(LockingValve.java:56) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.

      [Server:server-one]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]

      [Server:server-one]

      [Server:server-one] 05:15:24,677 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/TechIntegrationTest].[jsp]] (ajp--192.168.97.159-8009-1) Servl

      () for servlet jsp threw exception: java.lang.IllegalArgumentException: JBAS018062: Specified attribute cannot be replicated

      [Server:server-one]     at org.jboss.as.web.session.ClusteredSession.setAttribute(ClusteredSession.java:807) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.zkoss.zk.ui.http.SessionAgent.put(SessionAgent.java:30) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.http.SimpleSessionCache.put(SimpleSessionCache.java:36) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:158) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:433) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:414) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:126) [zk-6.5.3.jar:6.5.3]

      [Server:server-one]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      [Server:server-one]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.jsp.views.jsp.zkgrid_jsp._jspService(zkgrid_jsp.java:54)

      [Server:server-one]     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      [Server:server-one]     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:96) [struts2-core-2.3.15.jar:

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:67)

      [Server:server-one]     at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:48)

      [Server:server-one]     at org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:125) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:91) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:88) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.jboss.as.web.session.LockingValve.invoke(LockingValve.java:56) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      [Server:server-one]     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.

      [Server:server-one]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

      [Server:server-one]     at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]

      [Server:server-one]

      [Server:server-one] 05:16:24,722 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (ajp--192.168.97.159-8009-1) ISPN000136: Execution error: org.infinispan

      sfer.StateTransferInProgressException: Timed out waiting for the state transfer lock, state transfer in progress for view 8

      [Server:server-one]     at org.infinispan.interceptors.StateTransferLockInterceptor.signalStateTransferInProgress(StateTransferLockInterceptor.java:199)

      [Server:server-one]     at org.infinispan.interceptors.StateTransferLockInterceptor.visitPrepareCommand(StateTransferLockInterceptor.java:80)

      [Server:server-one]     at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)

      [Server:server-one]     at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

      [Server:server-one]     at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)

      [Server:server-one]     at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)