1 2 Previous Next 20 Replies Latest reply on Sep 25, 2016 4:39 PM by jamat Go to original post
      • 15. Re: HTTP Session Replication - org.infinispan.util.concurrent.TimeoutException
        pferraro

        Web session clustering is enabled via the use of <distributable/> in web.xml.

        • 16. Re: HTTP Session Replication - org.infinispan.util.concurrent.TimeoutException
          nick.sree

          This is happening even in wildfly 9.0CR1, i've don't have  <distributable/> in web.xml.  and in standalone mode.

           

          2015-06-04 10:05:16,546 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-31) ISPN000136: Execution error: org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 15 seconds for key Uzw713Lt8R-62Lub7f_Tc2w8 and requestor GlobalTransaction:<null>:83:local. Lock is held by GlobalTransaction:<null>:81:local, while request came from local

            at org.infinispan.util.concurrent.locks.LockManagerImpl.lock(LockManagerImpl.java:198)

            at org.infinispan.util.concurrent.locks.LockManagerImpl.acquireLock(LockManagerImpl.java:171)

            at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.lockKeyAndCheckOwnership(AbstractTxLockingInterceptor.java:177)

            at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitDataReadCommand(PessimisticLockingInterceptor.java:80)

            at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitGetKeyValueCommand(PessimisticLockingInterceptor.java:68)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97)

            at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:111)

            at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:77)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97)

            at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:322)

            at org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:300)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97)

            at org.infinispan.interceptors.CacheMgmtInterceptor.visitDataReadCommand(CacheMgmtInterceptor.java:103)

            at org.infinispan.interceptors.CacheMgmtInterceptor.visitGetKeyValueCommand(CacheMgmtInterceptor.java:91)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97)

            at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:102)

            at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:71)

            at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:77)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)

            at org.infinispan.cache.impl.CacheImpl.get(CacheImpl.java:423)

            at org.infinispan.cache.impl.DecoratedCache.get(DecoratedCache.java:427)

            at org.infinispan.cache.impl.AbstractDelegatingCache.get(AbstractDelegatingCache.java:289)

            at org.wildfly.clustering.web.infinispan.session.coarse.CoarseSessionFactory.findValue(CoarseSessionFactory.java:125)

            at org.wildfly.clustering.web.infinispan.session.coarse.CoarseSessionFactory.findValue(CoarseSessionFactory.java:58)

            at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.findSession(InfinispanSessionManager.java:232)

            at org.wildfly.clustering.web.undertow.session.DistributableSessionManager.getSession(DistributableSessionManager.java:115)

            at io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:719)

            at io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:749)

            at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:64)

            at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

            at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

            at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

            at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:274)

            at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:253)

            at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)

            at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)

            at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)

            at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

            at java.lang.Thread.run(Thread.java:745)

           

           

          2015-06-04 10:05:16,561 ERROR [io.undertow.request] (default task-31) UT005023: Exception handling request to /egi/inbox/draft: org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 15 seconds for key Uzw713Lt8R-62Lub7f_Tc2w8 and requestor GlobalTransaction:<null>:83:local. Lock is held by GlobalTransaction:<null>:81:local, while request came from local

            at org.infinispan.util.concurrent.locks.LockManagerImpl.lock(LockManagerImpl.java:198)

            at org.infinispan.util.concurrent.locks.LockManagerImpl.acquireLock(LockManagerImpl.java:171)

            at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.lockKeyAndCheckOwnership(AbstractTxLockingInterceptor.java:177)

            at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitDataReadCommand(PessimisticLockingInterceptor.java:80)

            at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitGetKeyValueCommand(PessimisticLockingInterceptor.java:68)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97)

            at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:111)

            at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:77)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97)

            at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:322)

            at org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:300)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97)

            at org.infinispan.interceptors.CacheMgmtInterceptor.visitDataReadCommand(CacheMgmtInterceptor.java:103)

            at org.infinispan.interceptors.CacheMgmtInterceptor.visitGetKeyValueCommand(CacheMgmtInterceptor.java:91)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97)

            at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:102)

            at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:71)

            at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:77)

            at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40)

            at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)

            at org.infinispan.cache.impl.CacheImpl.get(CacheImpl.java:423)

            at org.infinispan.cache.impl.DecoratedCache.get(DecoratedCache.java:427)

            at org.infinispan.cache.impl.AbstractDelegatingCache.get(AbstractDelegatingCache.java:289)

            at org.wildfly.clustering.web.infinispan.session.coarse.CoarseSessionFactory.findValue(CoarseSessionFactory.java:125)

            at org.wildfly.clustering.web.infinispan.session.coarse.CoarseSessionFactory.findValue(CoarseSessionFactory.java:58)

            at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.findSession(InfinispanSessionManager.java:232)

            at org.wildfly.clustering.web.undertow.session.DistributableSessionManager.getSession(DistributableSessionManager.java:115)

            at io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:719)

            at io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:749)

            at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:64)

            at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

            at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

            at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

            at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

            at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:274)

            at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:253)

            at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:80)

            at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:172)

            at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)

            at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:774)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

            at java.lang.Thread.run(Thread.java:745)

          • 17. Re: HTTP Session Replication - org.infinispan.util.concurrent.TimeoutException
            pgozdzik

            I have similar error in my cluster when I have distribuable enabled in  my cluster.

            Longer operation which iterate for example over large database result set causes this error. Widfly hangs on and no request is served by wildfly, it is freezed.

            I tested it on wildfly 8.1, 8.2, 10.0.0 Final

             

            Can you explain why this  error occurrs and why is not solved yet, beacause I think this is major issue and should happen to many developers.

            I created issue [WFLY-4616] Problem with distributable sessions on long IO - JBoss Issue Tracker about year ago and this error is not solved yet.

            • 18. Re: HTTP Session Replication - org.infinispan.util.concurrent.TimeoutException
              pferraro

              Please open a new thread on this topic.  Please post infinispan subsystem configuration and describe your usage pattern in detail.

              • 19. Re: HTTP Session Replication - org.infinispan.util.concurrent.TimeoutException
                pgozdzik

                Ok I will open new thread. I use out of the box configuration (standalone-full-ha) for inifinispan.

                 

                I'll try to prepare application which help reproduce this issue.

                • 20. Re: HTTP Session Replication - org.infinispan.util.concurrent.TimeoutException
                  jamat

                  I know this is an old thread but we are seeing similar errors in our application.

                  I am not sure if I have the same reading of this 7.2.2: "Within an application marked as distributable, all requests that are part of a session must be handled by one JVM at a time"

                  For me this could also means that a request must be processed by only one JVM. But you could still have // accesses.

                  1 2 Previous Next