本文介绍了ViewExpiredException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是JSF 2,primefaces 2.2.RC2,google-appengine

我最近从myfaces-2.0.0.beta3移动到myfaces-bundle-2.0.3。

在这个新版本中,我很频繁地得到下面的异常,远远超过了实际的会话超时。

  /login.jsf无法为视图标识符找到已保存的视图状态:/login.jsf 

导致:
javax.faces.application.ViewExpiredException - /login.jsfNo保存的视图状态可以为视图标识符找到:/login.jsf

我已将会话超时设置为10分钟。



通过查看其他博客,我已将facelets设置为true。 BUILD_BEFORE_RESTORE参数。
但是这并没有帮助

我不能让mojarra-2.0.4-FCS与之一起工作GAE。

修改WebConfiguration.java后,mojarra-2.0.3-FCS正在与GAE合作。

但我经常遇到新的异常

  java.lang.IndexOutOfBoundsException:索引:0,大小:0 at 
java.util.ArrayList.rangeCheck(ArrayList.java:571)at
java.util.ArrayList.get(ArrayList.java:349)at
javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:161)javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java :1428) -


解决方案

myfaces-2.0.2,myfaces -2.0.1有同样的问题。
myfaces-2.0.0有效。


I am using JSF 2 ,primefaces 2.2.RC2 ,google-appengine
I recently moved from myfaces-2.0.0.beta3 to myfaces-bundle-2.0.3.
With this new version, I am getting the below exception very frequently,much before the actual session timeout.

/login.jsfNo saved view state could be found for the view identifier: /login.jsf

Caused by:
javax.faces.application.ViewExpiredException - /login.jsfNo saved view state could be   found for the view identifier: /login.jsf

I have set my session timeout to 10 mins.

By seeing other blog I have set true for facelets.BUILD_BEFORE_RESTORE parameter.But that doesn't help



I couldn't make mojarra-2.0.4-FCS to work with GAE.
After modifying WebConfiguration.java ,mojarra-2.0.3-FCS is working with GAE.
But I get new exception frequently

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at   
java.util.ArrayList.rangeCheck(ArrayList.java:571) at   
java.util.ArrayList.get(ArrayList.java:349) at   javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:161) at
javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1428) – 
解决方案

myfaces-2.0.2,myfaces-2.0.1 is having the same issue.myfaces-2.0.0 works.

这篇关于ViewExpiredException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 01:18