4 Replies Latest reply on Mar 13, 2007 4:38 AM by Rob Jellinghaus

    java.lang.IllegalStateException : No phase id bound to curre

    Moshe Elisha Newbie

      My EAR is being deployed succssefully but every request I make throws the exception below.
      Why is that? How can I fix it?

      Thankyou.

      18:38:35,625 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
      java.lang.IllegalStateException : No phase id bound to current thread
      at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:116)
      at org.jboss.seam.contexts.PageContext.isRenderResponsePhase(PageContext.java:128)
      at org.jboss.seam.contexts.PageContext.getCurrentReadableMap (PageContext.java:62)
      at org.jboss.seam.contexts.PageContext.get(PageContext.java:52)
      at org.jboss.seam.core.Manager.restoreConversation(Manager.java:531)
      at org.jboss.seam.jsf.AbstractSeamPhaseListener.restoreAnyConversationContext (AbstractSeamPhaseListener.java:42)
      at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:66)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
      at com.sun.faces.lifecycle.LifecycleImpl.execute (LifecycleImpl.java:90)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java :175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java :527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)

        • 1. Re: java.lang.IllegalStateException : No phase id bound to c
          Stephane DUCAS Newbie

          I'm facing the same issue while trying to make ajax4jsf working with SEAM:

          When I press the a4j:commandButton wich is supposed to trig my component action then rerender an part of the view I get:

          GRAVE: Error Rendering View
          java.lang.IllegalStateException: No phase id bound to current thread
          at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:105)
          at org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(PageContext.java:112)
          at org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContext.java:66)
          at org.jboss.seam.contexts.PageContext.set(PageContext.java:70)
          at org.jboss.seam.core.Manager.storeLongRunningConversation(Manager.java:414)
          at org.jboss.seam.core.Manager.storeConversation(Manager.java:391)
          at org.jboss.seam.jsf.AbstractSeamPhaseListener.storeAnyConversationContext(AbstractSeamPhaseListener.java:73)
          at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:45)
          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:471)
          at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65)
          at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:226)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at com.shtechnologie.shtbma.auth.CheckLoggedInFilter.doFilter(CheckLoggedInFilter.java:36)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
          at java.lang.Thread.run(Thread.java:595)

          • 2. Re: java.lang.IllegalStateException : No phase id bound to c
            None None Master

            Did anyone find a solution for this? I'm running into the same problem.

            • 3. Re: java.lang.IllegalStateException : No phase id bound to c
              Norman Richards Master

              The booking example use ajax4jsf - does that example run for you?

              • 4. Re: java.lang.IllegalStateException : No phase id bound to c
                Rob Jellinghaus Novice

                A couple of us have just run into the same issue when trying to integrate g4jsf (which has its own phase listener, the GwtPhaseListener) and Seam.

                See here for more details: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103603

                It seems that the ajax4jsf guys consider this a bug:
                http://jira.jboss.org/jira/browse/AJSF-6

                I am not clueful enough to know where the problem (if any) lies, or why the booking example doesn't have any issues out of the box. But now that you are all one big happy family, hopefully you can work it out and enlighten us all :-)

                Cheers!
                Rob