You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Caius Gran (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/03/05 08:08:59 UTC

[jira] [Created] (TRINIDAD-2232) ComponentContextManagerImpl.resume() fails on null _stack member variable

ComponentContextManagerImpl.resume() fails on null _stack member variable
-------------------------------------------------------------------------

                 Key: TRINIDAD-2232
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2232
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 2.0.2-core
         Environment: tomcat 6.0.20, myfaces 2.0.11, java 1.6.0_22, trinidad svn r1294382 (2.0.2-snapshot)
            Reporter: Caius Gran


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)
        ...


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira