myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jojada Tirtowidjojo <>
Subject ViewExpiredException: No saved view state could be found for the view identifier
Date Fri, 20 Nov 2015 04:42:35 GMT
Hi All,

I am new to JSF and Myfaces and need answers or pointers that can help me
fix the problem I am currently having. Would you please help ?

My application embeds a Jetty 9.3.6 server and uses the Apache MyFaces
2.2.8. It runs well with the Jetty default session tracking modes: URL and
COOKIE but a problem arises when I change the tracking mode to 'COOKIE'
only. As soon as I submit login details from the login page I receive the
following exception:

javax.faces.application.ViewExpiredException: /pages/ - No
saved view state could be found for the view identifier:
	at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(
	at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
	at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
	at javax.faces.webapp.FacesServlet.service(
	at org.eclipse.jetty.servlet.ServletHolder.handle(
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
	at org.eclipse.jetty.servlet.ServletHandler.doScope(
	at org.eclipse.jetty.server.session.SessionHandler.doScope(
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
	at org.eclipse.jetty.server.Server.handle(
	at org.eclipse.jetty.server.HttpChannel.handle(
	at org.eclipse.jetty.server.HttpConnection.onFillable(
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
	at org.eclipse.jetty.util.thread.QueuedThreadPool$

Tracing the Myfaces code suggests that the previously saved
SerializedViewCollection object in the servlet session, somehow, has gone
missing during an attempt to restore the login view.

Any comment, answer, and/or pointer is very much appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message