Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NullPointerException restoring view if session expired

843842May 29 2005 — edited Jun 3 2005
I have a fairly substantial application that runs fine on Tomcat. JSF jsf-1_1_01 but if I leave it, come back a while later and try to navigate within the application I get:
java.lang.NullPointerException
	com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:221)
	com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:212)
	com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
.

I'm assuming that the session has expired and that it isn't recovering geracefully, but I don't know what to do about it since its not in my code. Is there something I should do to prevent this?

Thanks, Mike
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2005
Added on May 29 2005
4 comments
152 views