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-3913) NPE in SwitchAjaxExceptionHandlerWrapperImpl
Date Wed, 06 Aug 2014 19:56:13 GMT

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

Mime
View raw message