0 Replies Latest reply on Jan 8, 2013 3:47 PM by sv kap

    a4j:poll exception after session close

    sv kap Newbie

      Hi.

       

      I am using RF 4.1 final and Mojarra 2.1.7.

       

      I have the following scenario:

      1. User connects to the site.

      2. Session expires (user connetion problem, server restart, etc.)

      3. User doesn't change the page (a4j:poll JS is still working)

      4. After user reconnects the web page is not refreshed by a4j:poll and I get the following exception:

       

       

      java.lang.IllegalArgumentException: null source
          at java.util.EventObject.<init>(EventObject.java:56)
          at javax.faces.event.SystemEvent.<init>(SystemEvent.java:71)
          at javax.faces.event.ComponentSystemEvent.<init>(ComponentSystemEvent.java:73)
          at javax.faces.event.PostRestoreStateEvent.<init>(PostRestoreStateEvent.java:73)
          at com.sun.faces.lifecycle.RestoreViewPhase.deliverPostRestoreStateEvent(RestoreViewPhase.java:271)
          at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:257)
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
          at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
          at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:931)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
          at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
          at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
          at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
          at java.lang.Thread.run(Thread.java:722)
      
      

       

       

      I couldn't find information on the subject but I guess it is a common problem and there should be a solution (I hope).