myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] Resolved: (MYFACES-2466) NullPointerException in UIComponentBase.restoreDeltaSystemEventListenerClassMap() when UIViewRoot subscribed to PostAddToViewEvent
Date Wed, 03 Feb 2010 05:29:18 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-2466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved MYFACES-2466.
-------------------------------------

    Resolution: Duplicate
      Assignee: Leonardo Uribe

This is a duplicate of MYFACES-2487, which was already fixed

> 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
>            Assignee: Leonardo Uribe
>         Attachments: exception-trigger.patch, myfaces-2466-ugly-fix.patch
>
>
> 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.


Mime
View raw message