0 Replies Latest reply on Jan 23, 2016 4:32 AM by Adrien Adrien

    [Wildfly-9.02 ]migration AS 7.1 to wildfly 9.02aleatory 'llegalStateException: UT000010: Session not found'

    Adrien Adrien Apprentice

      I

      I m currenting migrate from JBOSS AS 7.1 to wildfly 9.02.

      In a HttpSessionListener , a session.getAttribute("www"); can produce a java.lang.IllegalStateException: UT000010: Session not found

      This is aleatory, I start 20 times the server no problem, et at the 21 time=>java.lang.IllegalStateException: UT000010: Session not found

      If i restart the server it disappear...

       

      If someone has a idea...

       

      Thanks

      Adrien

       

       

      public List<HttpSession> getUserSessions(long uid){

        List<HttpSession> clone = (List<HttpSession>) sessions.clone();

        Iterator<HttpSession> it = clone.iterator();

        List<HttpSession> http=new ArrayList<HttpSession>(1);

        while(it.hasNext()){

        try{

        HttpSession sess = it.next();

        if(log.isDebugEnabled()){

        log.debug("getUserSessions({}) id={} sess={}",uid,sess.getId(),sess);

        } 

        PreferenceBean pref = (PreferenceBean) sess.getAttribute("prefs");

        if(pref!=null &&  pref.getUid() == uid ){

        http.add(sess);

        }

        }catch(java.lang.IllegalStateException e){

        log.error(" UT000010: Session not found: normal?",e);

        }

        catch(Exception e){

        log.error("??????pas prevu",e);

        }

        }

       

        return http;

        }

       

       

       

      java.lang.IllegalStateException: UT000010: Session not found fO2MULZ58rjFtPDc1yiHusfQaaY21VQTamLmD1OR

              at io.undertow.server.session.InMemorySessionManager$SessionImpl.getAttribute(InMemorySessionManager.java:430)

              at io.undertow.servlet.spec.HttpSessionImpl.getAttribute(HttpSessionImpl.java:123)

              at com.myser.web.system.SessionCounterCleaner.getUserSessions(SessionCounterCleaner.java:345)

              at com.myser.web.jsf.admin.CtrlAdminDelete.updateChatStatus(CtrlAdminDelete.java:107)

              at com.myser.web.jsf.admin.common.CommonsManageUser.applyOnBD(CommonsManageUser.java:245)

              at com.myser.web.jsf.admin.common.CommonsManageUser.actionValidate(CommonsManageUser.java:66)

              at com.myser.web.jsf.admin.CtrlAdminSearches.actionValidate(CtrlAdminSearches.java:374)

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

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

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

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

              at com.sun.el.parser.AstValue.invoke(AstValue.java:292)

              at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)

              at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

              at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

              at com.sun.faces.facelets.el.ContextualCompositeMethodExpression.invoke(ContextualCompositeMethodExpression.java:194)

              at com.sun.faces.facelets.tag.TagAttributeImpl$AttributeLookupMethodExpression.invoke(TagAttributeImpl.java:477)

              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)

              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

              at javax.faces.component.UICommand.broadcast(UICommand.java:315)

              at org.richfaces.component.RowKeyContextEventWrapper.broadcast(RowKeyContextEventWrapper.java:104)

              at org.richfaces.component.UIDataAdaptor.broadcast(UIDataAdaptor.java:456)

              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)

              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)

              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

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

              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)

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

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

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

              at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:151)

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

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

              at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)

              at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)

              at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)

              at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)

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

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

              at com.myser.web.workarounds.pushatmospheretimeout.RichfacesPushTimeoutFilter.doFilter(RichfacesPushTimeoutFilter.java:102)

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

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

              at org.omnifaces.filter.GzipResponseFilter.doFilter(GzipResponseFilter.java:173)

              at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)

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

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

              at org.omnifaces.filter.CacheControlFilter.doFilter(CacheControlFilter.java:237)

              at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:108)

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

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

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

              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.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)

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

              at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)

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

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

              at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)

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

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

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

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

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

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

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