You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Stockhammer (JIRA)" <de...@myfaces.apache.org> on 2011/03/31 15:32:05 UTC

[jira] [Created] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

NavigationHandlerImpl throws NullpointerException if view is expired
--------------------------------------------------------------------

                 Key: MYFACES-3101
                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 2.0.4
            Reporter: Martin Stockhammer


I tried to use the NavigationHandler inside a Faces exception handler to deal with ViewExpiredException as mentioned here: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.

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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027737#comment-13027737 ] 

Jakob Korherr commented on MYFACES-3101:
----------------------------------------

Hi,

Because there was no release since the patch was committed, you will have to use 2.0.6-SNAPSHOT. You can get it from our snapshots repo (see [1]) our by checking out current20 (see [2]) using svn checkout and building it yourself using maven!

[1] https://repository.apache.org/content/groups/snapshots/org/apache/myfaces/core/
[2] https://svn.apache.org/repos/asf/myfaces/current20/

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Updated] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Korherr updated MYFACES-3101:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.6-SNAPSHOT
           Status: Resolved  (was: Patch Available)

resolved

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Martin Kočí (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016772#comment-13016772 ] 

Martin Kočí commented on MYFACES-3101:
--------------------------------------

In reply to comment #1:
> I tried the patch. It works for normal page requests. But with an AJAX call I
> get another NPE.

Yes, I know about that, I'm working on it. Simple if not null will not help there; I'm going to create new issue for it.

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Martin Stockhammer
>         Attachments: MYFACES-3101.patch
>
>
> I tried to use the NavigationHandler inside a Faces exception handler to deal with ViewExpiredException as mentioned here: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "alex musort (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028274#comment-13028274 ] 

alex musort commented on MYFACES-3101:
--------------------------------------

Hi Jakob

I downloaded these jar files:
https://repository.apache.org/content/groups/snapshots/org/apache/myfaces/core/myfaces-api/2.0.6-SNAPSHOT/myfaces-api-2.0.6-20110501.000939-11.jar
https://repository.apache.org/content/groups/snapshots/org/apache/myfaces/core/myfaces-impl/2.0.6-SNAPSHOT/myfaces-impl-2.0.6-20110502.150311-11.jar

And I replace them in my project but I'm getting the following errror:

javax.faces.view.facelets.TagException
/prototipo/altaEmpleados.xhtml at line 69 and column 15 <f:metadata> Parent UIComponent j_id826412481_721d0ace should be instance of UIViewRoot

What am I doing wrong??? Or what else do I need to do because besides the error I mentioned above, I'm still getting the nullpointerexception error

java.lang.NullPointerException
	at org.apache.myfaces.context.servlet.PartialViewContextImpl.getPartialResponseWriter(PartialViewContextImpl.java:301)

thx.

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Martin Stockhammer (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016757#comment-13016757 ] 

Martin Stockhammer commented on MYFACES-3101:
---------------------------------------------

I tried the patch. It works for normal page requests. But with an AJAX call I get another NPE.

The NPE occurs in handleNavigation on:
{code}
                PartialViewContext partialViewContext = facesContext.getPartialViewContext();
                if ( partialViewContext.isPartialRequest() && 
                     !partialViewContext.isRenderAll() && 
                     !facesContext.getViewRoot().getViewId().equals(newViewId))
{code}

I think its the facesContext.getViewRoot().getViewId()


> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Martin Stockhammer
>         Attachments: MYFACES-3101.patch
>
>
> I tried to use the NavigationHandler inside a Faces exception handler to deal with ViewExpiredException as mentioned here: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Updated] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Martin Kočí (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Kočí updated MYFACES-3101:
---------------------------------

    Status: Patch Available  (was: Open)

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Martin Stockhammer
>
> I tried to use the NavigationHandler inside a Faces exception handler to deal with ViewExpiredException as mentioned here: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "alex musort (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027692#comment-13027692 ] 

alex musort commented on MYFACES-3101:
--------------------------------------

Hello...

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??

thx

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023405#comment-13023405 ] 

Jakob Korherr commented on MYFACES-3101:
----------------------------------------

since the patch has been commited, can we resolve this one, Martin?

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Martin Stockhammer
>         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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Martin Stockhammer (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025672#comment-13025672 ] 

Martin Stockhammer commented on MYFACES-3101:
---------------------------------------------

Yes it can be resolved. Thank You!

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Martin Stockhammer
>         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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028290#comment-13028290 ] 

Jakob Korherr commented on MYFACES-3101:
----------------------------------------

I agree with Leonardo.

Alex, please write a mail describing your problem to users@myfaces.apache.org, thanks!

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Martin Kočí (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023290#comment-13023290 ] 

Martin Kočí commented on MYFACES-3101:
--------------------------------------

Patch commited in rev. 1095966, myfaces-2.0.6-SNAPSHOT.

MYFACES-3105 needs to be done for full functionality.

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.4
>            Reporter: Martin Stockhammer
>         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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira

[jira] [Commented] (MYFACES-3101) NavigationHandlerImpl throws NullpointerException if view is expired

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028288#comment-13028288 ] 

Leonardo Uribe commented on MYFACES-3101:
-----------------------------------------

Just one note: myfaces jira should not be used to discuss this problems. Please ask this new issue on myfaces user or dev mailing list, and then if it is a confirmed bug raise a ticket here. Thanks!

> NavigationHandlerImpl throws NullpointerException if view is expired
> --------------------------------------------------------------------
>
>                 Key: MYFACES-3101
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3101
>             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: http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
> 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: http://www.atlassian.com/software/jira