0 Replies Latest reply on Feb 28, 2014 8:24 AM by mbartolucci Branched from an earlier discussion.

    Re: Clustering + Session sharing lock acquisition errors

    mbartolucci

      Hi,

      I'm new here, but I've same problem with my jboss AS 6.1 cluster.

      My configuration is 2 nodes jboss in cluster, using TCP protocol as channel of communication between jboss intead of udp multicasting. My configuration of reverse proxy is:

      <Location /payer>

          ProxyPass balancer://appCluster/payer stickysession=JSESSIONID

      </Location>

       

      and my configuration of proxymap

      proxymap_payer.properties

      **************************************************************

      ProxyVia On

      <Proxy balancer://appCluster>

              BalancerMember ajp://10.254.11.162:8009 route=payn1 retry=60 loadfactor=50

              BalancerMember ajp://10.254.11.163:8009 route=payn2 retry=60 loadfactor=50

      </Proxy>

      <Location /payer>

          ProxyPass balancer://appCluster/payer stickysession=JSESSIONID

      </Location>

      <Location /manager>

          ProxyPass balancer://appCluster/manager stickysession=JSESSIONID

      </Location>

      <Location /GatewaysService>

          ProxyPass balancer://appCluster/GatewaysService stickysession=JSESSIONID

      </Location>

      <Location /jmx-console>

          ProxyPass balancer://appCluster/jmx-console stickysession=JSESSIONID

      </Location>

       

      but I get this error onlock session:

      2014-02-17 10:38:42,508 ERROR [org.apache.catalina.connector.CoyoteAdapter] (ajp-10.254.11.163-8009-70) An exception or error occurred in the container during the request processing: java.lang.RuntimeException: Caught TimeoutException acquiring ownership of osC3EkEZF65wzIie0KRywQ__

      at org.jboss.web.tomcat.service.session.ClusteredSession.acquireSessionOwnership(ClusteredSession.java:603) [:6.1.0.Final]

      at org.jboss.web.tomcat.service.session.ClusteredSession.access(ClusteredSession.java:566) [:6.1.0.Final]

      at org.apache.catalina.connector.Request.doGetSession(Request.java:2566) [:6.1.0.Final]

      at org.apache.catalina.connector.Request.getSession(Request.java:2316) [:6.1.0.Final]

      at org.jboss.web.tomcat.service.session.JvmRouteValve.checkJvmRoute(JvmRouteValve.java:95) [:6.1.0.Final]

      at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:85) [:6.1.0.Final]

      at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62) [:6.1.0.Final]

      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.1.0.Final]

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.1.0.Final]

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [:6.1.0.Final]

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.1.0.Final]

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.1.0.Final]

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.1.0.Final]

      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.1.0.Final]

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.1.0.Final]

      at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:504) [:6.1.0.Final]

      at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:437) [:6.1.0.Final]

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.1.0.Final]

      at java.lang.Thread.run(Thread.java:662) [:1.6.0_45]

      Caused by: org.jboss.ha.framework.server.lock.TimeoutException: Cannot acquire lock //localhost/payer/osC3EkEZF65wzIie0KRywQ__ from cluster

      at org.jboss.ha.framework.server.lock.SharedLocalYieldingClusterLockManager.lock(SharedLocalYieldingClusterLockManager.java:554) [:2.0.0.Final]

      at org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager.acquireSessionOwnership(DistributedCacheManager.java:448) [:1.0.0.Final]

      at org.jboss.web.tomcat.service.session.ClusteredSession.acquireSessionOwnership(ClusteredSession.java:595) [:6.1.0.Final]

      ... 20 more

       

      were is the problem?

      Thanks

      Marco