ICEfaces
  1. ICEfaces
  2. ICE-1308

Seam: "No phase id bound to current thread" when resolving 'identity' component

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.6DR#1
    • Fix Version/s: 1.6DR#3
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      windows xp, jboss 4.5
    • Assignee Priority:
      P2

      Description

      An IllegalArgumentException stating that there is no phase id bound to the current thread is generated when resolving the in-built Seam identify component

      email thread from user:
      The page is not rendering, i opened the iceface DOM update console but it is not spitting any logs out, i got this error from the jboss console instead:

      15:30:12,367 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
      15:32:52,194 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
      15:32:52,194 ERROR [2]] Session event listener threw exception
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.security.identity
              at org.jboss.seam.Component.newInstance(Component.java:1708)
              at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:165)
              at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:225)
              at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:41)
              at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:384)
              at org.apache.catalina.session.StandardSession.setId(StandardSession.java:356)
              at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:824)
              at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:290)
              at org.apache.catalina.connector.Request.doGetSession(Request.java:2225)
              at org.apache.catalina.connector.Request.getSession(Request.java:2024)
              at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831)
              at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:27)
              at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:41)

              at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:18)
              at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:51)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
              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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
              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(Http11BasePro
      tocol.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:619)
      Caused by: java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two
       SeamPhaseListener instances installed)
              at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:153)
              at org.jboss.seam.contexts.PageContext.isRenderResponsePhase(PageContext.java:165)
              at org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:76)
              at org.jboss.seam.contexts.PageContext.get(PageContext.java:66)
              at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:160)
              at org.jboss.seam.Component.getInstance(Component.java:1577)
              at org.jboss.seam.Component.getInstance(Component.java:1572)
              at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
              at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
              at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
              at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
              at org.jboss.seam.util.UnifiedELValueBinding.getValue(UnifiedELValueBinding.java:34)
              at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:57)
              at org.jboss.seam.Component$ELInitialValue.getValue(Component.java:2045)
              at org.jboss.seam.Component.initialize(Component.java:1136)
              at org.jboss.seam.Component.instantiateJavaBean(Component.java:1096)
              at org.jboss.seam.Component.instantiate(Component.java:1056)
              at org.jboss.seam.Component.newInstance(Component.java:1704)
              ... 37 more
      15:32:58,241 INFO [Authenticator] authenticating tets

      03/07/2007 03:29 PM

      Subject
      Re: ICEfaces Support

      Kent,
         Is the page actually rendering anything? If so, can you try to open
      the ICEfaces DOM update console (control-shift-t) and capture the logs
      there?

      Thanks,
      Philip

      >
      > Hi Philip,
      >
      > I replaced my ice-faces jar with the 1.6.0.DR version and when I click
      > on my login screen, it just hangs and not do anything, here is the
      > stack trace:
      >
      > Thanks.

        Activity

        Hide
        Greg Dick added a comment -

        I haven't seen this issue in any of the seam applications I have worked on, but I was able to duplicate the problem by configuring two Seam phase listeners (which the stack trace suggests is the problem)

        Caused by: java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)

        Can we check with the client to see if this is indeed their problem as well?

        Show
        Greg Dick added a comment - I haven't seen this issue in any of the seam applications I have worked on, but I was able to duplicate the problem by configuring two Seam phase listeners (which the stack trace suggests is the problem) Caused by: java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed) Can we check with the client to see if this is indeed their problem as well?
        Hide
        Ken Fyten added a comment -

        This can't be reproduced without intentionally configuring multiple Seam Phase listeners, which is an incorrect configuration.

        Show
        Ken Fyten added a comment - This can't be reproduced without intentionally configuring multiple Seam Phase listeners, which is an incorrect configuration.

          People

          • Assignee:
            Greg Dick
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: