myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alex musort (JIRA)" <>
Subject [jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired
Date Mon, 02 May 2011 15:21:03 GMT


alex musort commented on MYFACES-3101:


I'm new using this technology and it's nice to see the problem I'm facing is solved.

Could anyone tell me where can I get the jars files with the solution implemented??


> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>                 Key: MYFACES-3101
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Martin Stockhammer
>             Fix For: 2.0.6-SNAPSHOT
>         Attachments: MYFACES-3101-v2.patch, MYFACES-3101.patch
> I tried to use the NavigationHandler inside a Faces exception handler to deal with ViewExpiredException
as mentioned here:
> The example does not work with myfaces, because org.apache.myfaces.application.NavigationHandlerImpl
throws a NullpointerException while handleNavigation() is called.
> The exception occurs in line 160: String viewId = facesContext.getViewRoot().getViewId();
> I think the cause is that the viewroot is not set anymore when the ViewExpiredException
is thrown. 
> The official API for NavigationHandler.handleNavigation tells, that the NullpointerException
is thrown only if the given facescontext is null.
>     NullPointerException - if context is null

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message