1 Reply Latest reply on Sep 10, 2007 1:00 AM by M. Schönau

    IllegalStateException after redeploy

    Thomas Dietmaier Newbie

      Hi,

      this error has bugged me for 2 days now:

      I get an
      java.lang.IllegalStateException: pageflow is not currently at a or <start-page> node (note that pageflows that begin during the RENDER_RESPONSE phase should use <start-page> instead of <start-state>)

      when accessing the start-page of the pageflow, but only after redeploying the EAR into the server. Said exception is also thrown when accessing the splash.seam page from a newly started browser after having deleted all cookies and history. Behaivour is as expected after the server is restarted.

      I am using: Seam 2.0.0.BETA1, Jbpm 3.2.1, JBoss 4.2.1

      This worked well back in the good old days (seam 1.2.0.PATCH1, Jbpm 3.2GA on JBoss 4.0.5GA)

      From reading the code I gather that the FacesManager is under the impression that there is some pageflow active, but the pageflow itself ist not currently at a page node -- how can this be?

      Any pointers are much appreciated.

      regards,
      Thomas.


      The pageflow definition:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <pageflow-definition name="main">
       <start-page name="splash" view-id="/mde/splash.xhtml" login-required="false">
       <redirect/>
       <transition name="next" to="login"></transition>
       </start-page>
       <page name="login" view-id="/mde/login.xhtml" login-required="false">
      [...]
      </pageflow-definition>
      


      and also my pages.xml:
      <pages no-conversation-view-id="/mde/splash.xhtml">
       <page view-id="/mde/splash.xhtml" login-required="false">
       <begin-conversation pageflow="main" join="true"/>
       </page>
       [...]
      


      Here is the complete stacktrace:
      20:27:28,701 ERROR [SeamPhaseListener] uncaught exception
      java.lang.IllegalStateException: pageflow is not currently at a <page> or <start-page> node (note that pageflows that begin during the RENDER_RESPONSE phase should use <start-page> instead of <start-state>)
       at org.jboss.seam.pageflow.Pageflow.getPage(Pageflow.java:215)
       at org.jboss.seam.faces.FacesManager.prepareBackswitch(FacesManager.java:239)
       at org.jboss.seam.jsf.SeamPhaseListener.beforeRender(SeamPhaseListener.java:488)
       at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
       at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at at.dataphone.logis2.system.UiProtocol.doFilter(UiProtocol.java:28)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at at.dataphone.logis2.system.RequestLogger.doFilter(RequestLogger.java:25)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
       at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       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:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Unknown Source)
      20:27:28,717 ERROR [SeamPhaseListener] swallowing exception