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 2014/08/06 21:56:13 UTC
[jira] [Resolved] (MYFACES-3913) NPE in
SwitchAjaxExceptionHandlerWrapperImpl
[ https://issues.apache.org/jira/browse/MYFACES-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonardo Uribe resolved MYFACES-3913.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.2.5
2.1.16
2.0.22
Assignee: Leonardo Uribe
Thanks to Thomas Andraschko for provide this patch
> NPE in SwitchAjaxExceptionHandlerWrapperImpl
> --------------------------------------------
>
> Key: MYFACES-3913
> URL: https://issues.apache.org/jira/browse/MYFACES-3913
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.1.15
> Reporter: Thomas Andraschko
> Assignee: Leonardo Uribe
> Fix For: 2.0.22, 2.1.16, 2.2.5
>
>
> _isAjaxRequest = facesContext.getPartialViewContext().isAjaxRequest();
> occurs 2 times in SwitchAjaxExceptionHandlerWrapperImpl and facesContext.getPartialViewContext() can be null.
> We should just return false if it's null.
> StackTrace:
> java.lang.NullPointerException
> at org.apache.myfaces.shared.context.SwitchAjaxExceptionHandlerWrapperImpl.isAjaxRequest(SwitchAjaxExceptionHandlerWrapperImpl.java:98)
> at org.apache.myfaces.shared.context.SwitchAjaxExceptionHandlerWrapperImpl.getWrapped(SwitchAjaxExceptionHandlerWrapperImpl.java:106)
> at javax.faces.context.ExceptionHandlerWrapper.isListenerForSource(ExceptionHandlerWrapper.java:70)
> at javax.faces.context.ExceptionHandlerWrapper.isListenerForSource(ExceptionHandlerWrapper.java:70)
> at javax.faces.context.ExceptionHandlerWrapper.isListenerForSource(ExceptionHandlerWrapper.java:70)
> at org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2480)
> at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:586)
> at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:616)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:336)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:336)
> at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:336)
> at org.apache.deltaspike.jsf.impl.injection.InjectionAwareApplicationWrapper.publishEvent(InjectionAwareApplicationWrapper.java:121)
> at org.apache.myfaces.lifecycle.PhaseListenerManager.publishException(PhaseListenerManager.java:136)
> at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:123)
> at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:185)
> at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
> at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
--
This message was sent by Atlassian JIRA
(v6.2#6252)