0 Replies Latest reply on Jun 28, 2016 2:55 PM by Wayne Wang

    Wildfly 10 Unable to acquire lock after 15 seconds for key UnknownSessionID

    Wayne Wang Apprentice

      Our application (EAR file) can be deployed with standalone-full.xml without any issue. However, when I deploy it with standalone-full-ha.xml, we got the following error message with the first request to login by a single user

       

      Exception during request processing:

      Caused by javax.servlet.ServletException with message: "org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 15 seconds for key UnknownSessionID [6954674968546569685651565257545157566654695468576955666753525253] and requestor GlobalTransaction:<nodeOne>:11:local. Lock is held by GlobalTransaction:<nodeOne>:8:local"


      By changing the infinispan subsystem with longer time for locking acquire-timeout to 120 seconds, it will wait until 120 seconds and reported message like

      unable to acquire lock after 120 seconds ....

       

      It looks like the application just wait until timeout. One line of the error message pointed to a stateful session bean with a method annotated with

      @TransactionAttribute( TransactionAttributeType.NOT_SUPPORTED )


      Exception during request processing:

      Caused by javax.servlet.ServletException with message: "org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 15 seconds for key UnknownSessionID [5667525570545165685448515252534966545169685748576951545451536551] and requestor GlobalTransaction:<nodeOne>:11:local. Lock is held by GlobalTransaction:<nodeOne>:8:local"

       

      javax.faces.webapp.FacesServlet.service(FacesServlet.java:671)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

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

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

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

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

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

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

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

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

       



      Caused by javax.ejb.EJBException with message: "org.infinispan.util.concurrent.TimeoutException: ISPN000299: Unable to acquire lock after 15 seconds for key UnknownSessionID [5667525570545165685448515252534966545169685748576951545451536551] and requestor GlobalTransaction:<nodeOne>:11:local. Lock is held by GlobalTransaction:<nodeOne>:8:local"


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

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

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

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

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

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

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

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

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

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

      org.javassist.tmp.java.lang.Object_$$_jvstab9_d1.hasItems(Object_$$_jvstab9_d1.java)

      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)

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

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

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

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

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

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

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

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

       

      Message was edited by: Wayne Wang It is just a single request