MyFaces Trinidad
  1. MyFaces Trinidad
  2. TRINIDAD-2232

ComponentContextManagerImpl.resume() fails on null _stack member variable

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2-core
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      tomcat 6.0.20, myfaces 2.0.11, java 1.6.0_22, trinidad svn r1294382 (2.0.2-snapshot)

      Description

      I couldn't figure out a simple case for reproducing this, but judging by the debugging I did,
      the reason seems to be a pushChange()/popChange() -cycle of some children (or grand-children or etc)
      components as a side effect leaving the "_stack" member variable null.

      An example resulting stack trace:

      java.lang.NullPointerException
      at org.apache.myfaces.trinidad.context.ComponentContextManagerImpl.resume(ComponentContextManagerImpl.java:179)
      at org.apache.myfaces.trinidad.component.UIXDocument.tearDownVisitingContext(UIXDocument.java:118)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:595)
      at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:362)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:810)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1073)
      at org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:172)
      at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:117)
      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:151)
      at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:177)
      at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:160)
      at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:177)
      at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:160)
      at javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:990)
      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:280)
      at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1275)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:728)
      at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:38)
      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
      ...

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Caius Gran
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development