1 Reply Latest reply on Mar 7, 2011 4:02 PM by Jusang Lee

    icefaces session timeout popup message in conversation scoped

    Jusang Lee Newbie
      I am using icefaces and weld 1.1.0 Beta2 version.
      And my application have a few screens and most of them are Session Scoped and some screens are conversational scoped. in the session scoped screen it gets icefaces modal popup message when the session timed out. but from conversational scoped screen , it gets nothing and just freezes and get this error msg

      org.jboss.weld.context.NonexistentConversationException: WELD-000218 Conversation ID 2 is already in use
              at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:108)
              at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:84)
              at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:224)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:95)
              at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:109)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:334)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
              at java.lang.Thread.run(Thread.java:662)


      Is there any way to get the same session time out modal popup on the conversational scoped screen or redirect it to the login page ? I also added this to the web.xml but does not work

      <error-page>
      <exception-type>org.jboss.weld.context.NonexistentConversationException</exception-type>
      <location>/login.jsf</location>
      </error-page>

      Thanks in advance
        • 1. Re: icefaces session timeout popup message in conversation scoped
          Jusang Lee Newbie

          basically, we're trying to make it possible for users to open multiple tabs in the browser independently each other and manage independent session so that one tab's session expired or crashed for some reason, the other tab should not affected. To do this I ended up with conversational scope and it works independently on the conversational scoped screen but when session timed out from one tab, the other tab timed out also because they are session scoped.