4 Replies Latest reply on Jul 8, 2016 11:50 AM by Wayne Wang

    cache-ref="distributable" caused the error "Unable to acquire lock after 15 seconds for key UnknownSessionID..."

    Wayne Wang Apprentice

      I am on Wildfly 10 final

       

      There are two cache defined in the HA profile (standalone-full-ha.xml): simple and distributable.

       

      Our EAR based web application always runs with the full (not ha) profile, and we would like to run as  HA singleton. When I use the HA profile, it throws out exception "Unable to acquire lock after 15 seconds for key UnknownSessionID" and timed out.

       

      If I change the distributable to simple (still use the ha profile with this only change), then, it will run without issue.

       

      Question:

      (1) What are the differences between "distributable" and "simple"?

      (2) why is it that running with distributable setting causes this issue?

      (3) what is the implication of not running with "distributable" setting?

       

      Thanks,

       

      Wayne

        • 1. Re: cache-ref="distributable" caused the error "Unable to acquire lock after 15 seconds for key UnknownSessionID..."
          Paul Ferraro Master
          1. The "simple" cache will store @Stateful EJB state in a local map.  The "distributable" cache will store @Stateful EJB state in a distributed Infinispan cache.
          2. I need more information about your use case before I can begin to answer that question, including a full stack trace.
          3. The intention of the "distributable" cache is to provide high-availability of SFSB state.  HA SFSB state is only fully leveragable if the associated EJB handles are made available to other nodes (e.g. @SessionScoped + distributable sessions, remote EJB client, etc.).  If you don't need this, then you can disable this behavior globally by changing cache-ref to "simple", or on a per-EJB basis using @Stateful(passivation-capable=false).  The passivation-disabled-cache-ref cache is configured to use "simple" for both full and full-ha profiles.
          • 2. Re: cache-ref="distributable" caused the error "Unable to acquire lock after 15 seconds for key UnknownSessionID..."
            Wayne Wang Apprentice

            Paul,

             

            Our final goal is to set up a HA singleton environment. I am not sure if the setting "distributable" is useful in HA singleton scenario, meaning, if the active instance (HA singleton provider) is down, any state information will be available or replicated to the instance that will be selected as new HA singleton provider.

             

            First of all, I need to set up a cluster environment, and need to know if our application can run in a cluster scenario.

             

            The following is the error log. I was able to land on the first page that requires me to login, and login process failed on a method call from a stateful session bean

             

            2016-07-08 10:00:13,340 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-38) ISPN000136: Error executing command LockControlCommand, writing keys []: org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 15 seconds for key UnknownSessionID [6666565250694970576957495253676566576953684866694956565667655750] and requestor GlobalTransaction:<wwang>:95:local. Lock is held by GlobalTransaction:<wwang>:90:local

              at org.infinispan.util.concurrent.locks.impl.DefaultLockManager$KeyAwareExtendedLockPromise.lock(DefaultLockManager.java:236)

              at org.infinispan.interceptors.locking.AbstractLockingInterceptor.lockAllAndRecord(AbstractLockingInterceptor.java:199)

              at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.checkPendingAndLockAllKeys(AbstractTxLockingInterceptor.java:199)

              at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.lockAllOrRegisterBackupLock(AbstractTxLockingInterceptor.java:165)

              at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitLockControlCommand(PessimisticLockingInterceptor.java:184)

              at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)

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

              at org.infinispan.interceptors.TxInterceptor.invokeNextInterceptorAndVerifyTransaction(TxInterceptor.java:157)

              at org.infinispan.interceptors.TxInterceptor.visitLockControlCommand(TxInterceptor.java:215)

              at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)

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

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

              at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:163)

              at org.infinispan.statetransfer.TransactionSynchronizerInterceptor.visitLockControlCommand(TransactionSynchronizerInterceptor.java:78)

              at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)

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

              at org.infinispan.statetransfer.StateTransferInterceptor.handleTxCommand(StateTransferInterceptor.java:238)

              at org.infinispan.statetransfer.StateTransferInterceptor.visitLockControlCommand(StateTransferInterceptor.java:102)

              at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)

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

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

              at org.infinispan.interceptors.InvocationContextInterceptor.visitLockControlCommand(InvocationContextInterceptor.java:81)

              at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)

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

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

              at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:163)

              at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)

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

              at org.infinispan.cache.impl.CacheImpl.lock(CacheImpl.java:828)

              at org.infinispan.cache.impl.CacheImpl.lock(CacheImpl.java:810)

              at org.infinispan.cache.impl.AbstractDelegatingAdvancedCache.lock(AbstractDelegatingAdvancedCache.java:177)

              at org.wildfly.clustering.ejb.infinispan.bean.InfinispanBeanFactory.findValue(InfinispanBeanFactory.java:93)

              at org.wildfly.clustering.ejb.infinispan.bean.InfinispanBeanFactory.findValue(InfinispanBeanFactory.java:49)

              at org.wildfly.clustering.ejb.infinispan.InfinispanBeanManager.findBean(InfinispanBeanManager.java:238)

              at org.jboss.as.ejb3.cache.distributable.DistributableCache.get(DistributableCache.java:119)

              at org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:58)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:263)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:308)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:237)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

              at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

              at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

              at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

              at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

              at com.impact.jumptxt.media.core.ui.beans.FavoritesLocal$$$view130.hasItems(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:497)

              at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

              at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)

              at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)

              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)

              at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:43)

              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

              at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

              at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)

              at org.javassist.tmp.java.lang.Object_$$_jvstfba_d1.hasItems(Object_$$_jvstfba_d1.java)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:497)

              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)

              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:280)

              at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)

              at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)

              at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

              at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

              at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:40)

              at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

              at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

              at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)

              at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:458)

              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:297)

              at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.TogglePanelItemRenderer.doEncodeChildren(TogglePanelItemRenderer.java:140)

              at org.richfaces.renderkit.html.AccordionItemRenderer.doEncodeChildren(AccordionItemRenderer.java:96)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.TogglePanelRenderer.doEncodeChildren(TogglePanelRenderer.java:129)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.TogglePanelItemRenderer.doEncodeChildren(TogglePanelItemRenderer.java:140)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.TogglePanelRenderer.doEncodeChildren(TogglePanelRenderer.java:129)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.AjaxOutputPanelRenderer.doEncodeChildren(AjaxOutputPanelRenderer.java:57)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)

              at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:458)

              at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:134)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:188)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at com.impact.seam.ui.ActiveUserViewHandler.renderView(ActiveUserViewHandler.java:32)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at com.impact.seam.ui.ChangePasswordViewHandler.renderView(ChangePasswordViewHandler.java:49)

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

              at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

              at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

              at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

              at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

              at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

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

              at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

              at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

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

              at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

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

              at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

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

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

              at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

              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:284)

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

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

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

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

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

              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)

             

             

            2016-07-08 10:00:13,682 ERROR [org.jboss.as.ejb3.invocation] (default task-38) WFLYEJB0034: EJB Invocation failed on component Favorites for method public abstract boolean com.impact.jumptxt.media.core.ui.beans.FavoritesLocal.hasItems(java.lang.String): javax.ejb.EJBException: org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 15 seconds for key UnknownSessionID [6666565250694970576957495253676566576953684866694956565667655750] and requestor GlobalTransaction:<wwang>:95:local. Lock is held by GlobalTransaction:<wwang>:90:local

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInNoTx(CMTTxInterceptor.java:213)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:265)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:308)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:237)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

              at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)

              at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)

              at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)

              at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

              at com.impact.jumptxt.media.core.ui.beans.FavoritesLocal$$$view130.hasItems(Unknown Source)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:497)

              at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

              at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)

              at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)

              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)

              at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:43)

              at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

              at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

              at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)

              at org.javassist.tmp.java.lang.Object_$$_jvstfba_d1.hasItems(Object_$$_jvstfba_d1.java)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:497)

              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)

              at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:280)

              at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)

              at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)

              at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

              at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

              at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:40)

              at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

              at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)

              at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)

              at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:458)

              at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:297)

              at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:114)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.TogglePanelItemRenderer.doEncodeChildren(TogglePanelItemRenderer.java:140)

              at org.richfaces.renderkit.html.AccordionItemRenderer.doEncodeChildren(AccordionItemRenderer.java:96)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.TogglePanelRenderer.doEncodeChildren(TogglePanelRenderer.java:129)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.TogglePanelItemRenderer.doEncodeChildren(TogglePanelItemRenderer.java:140)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.TogglePanelRenderer.doEncodeChildren(TogglePanelRenderer.java:129)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)

              at org.richfaces.renderkit.html.AjaxOutputPanelRenderer.doEncodeChildren(AjaxOutputPanelRenderer.java:57)

              at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:158)

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:890)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)

              at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:458)

              at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:134)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:188)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at com.impact.seam.ui.ActiveUserViewHandler.renderView(ActiveUserViewHandler.java:32)

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

              at com.impact.seam.ui.ChangePasswordViewHandler.renderView(ChangePasswordViewHandler.java:49)

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:47)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

              at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)

              at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)

              at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)

              at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

              at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

              at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

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

              at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

              at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

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

              at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

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

              at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

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

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

              at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

              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:284)

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

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

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

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

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

              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)

            • 3. Re: cache-ref="distributable" caused the error "Unable to acquire lock after 15 seconds for key UnknownSessionID..."
              Paul Ferraro Master

              What exactly do you mean by "HA singleton environment"?  See:

              High Availability Guide - WildFly 10 - Project Documentation Editor

               

              If you are intending to deploy your EAR as a singleton deployment, you most certainly will not need a distributable SFSB cache, since you won't ever have more than 1 node running your application (thus there will be nowhere for your state to replicate).

              • 4. Re: cache-ref="distributable" caused the error "Unable to acquire lock after 15 seconds for key UnknownSessionID..."
                Wayne Wang Apprentice

                We are going to deploy the EAR as a singleton deployment.

                 

                In this case, do we still have web session replication if we set "distributable" in web.xml?

                 

                I also noticed that if I shut down the node (current singleton provider)  in the middle of processing messages from its queue . There can still be messages stuck in the queue of this node after it is down, and the new node (singleton provider) will not be able to access the remaining messages until the node that was down is re-started again.

                 

                In this scenario, it would be idea to allow the remaining messages to be accessible and completely processed by the node that is newly selected as singleton provider. This is not working by default. Is there any way to get the messages replicated so a newly selected singleton provider will be able to access all remaining messages and process them?

                 

                Thanks