You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2010/01/14 19:43:55 UTC
[jira] Commented: (MYFACES-2466) NullPointerException in
UIComponentBase.restoreDeltaSystemEventListenerClassMap() when UIViewRoot
subscribed to PostAddToViewEvent
[ https://issues.apache.org/jira/browse/MYFACES-2466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800296#action_12800296 ]
Leonardo Uribe commented on MYFACES-2466:
-----------------------------------------
Do you have any additional information about this one? I just need a simple example that reproduce it. Theorically this should not happen, because partial state saving assumes when the component tree is built, no matter if is the first request or a postback, the tree is the same (also its listeners attached). So the _DeltaList related to this listener should always exists.
Note if this happens, the real bug could be hidden somewhere else, and because of that this error happens as a side effect.
> NullPointerException in UIComponentBase.restoreDeltaSystemEventListenerClassMap() when UIViewRoot subscribed to PostAddToViewEvent
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: MYFACES-2466
> URL: https://issues.apache.org/jira/browse/MYFACES-2466
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-314
> Affects Versions: 2.0.0-alpha-2
> Reporter: Jakob Korherr
>
> java.lang.NullPointerException
> at javax.faces.component.UIComponentBase.restoreDeltaSystemEventListenerClassMap(UIComponentBase.java:1770)
> at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1611)
> at javax.faces.component.UIViewRoot.restoreState(UIViewRoot.java:1161)
> at org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:379)
> at org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreView(DefaultFaceletsStateManagementStrategy.java:181)
> at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:388)
> at org.apache.myfaces.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
> at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:972)
> at org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:231)
> at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:106)
> at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:129)
> at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:85)
> at javax.faces.webapp.FacesServlet._handleStandardRequest(FacesServlet.java:453)
> ... 13 more
> In this scenario savedObject is an instance of _AttachedDeltaWrapper, but _systemEventListenerClassMap is empty and so it returns null for get(entry.getKey()). Thus a NullPointerException is thrown in the following line (UIComponentBase.java:1770).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.