查看过期异常

发布于 2024-10-14 16:05:18 字数 1055 浏览 4 评论 0原文

我正在使用 JSF 2、primefaces 2.2.RC2、google-appengine
我最近从 myfaces-2.0.0.beta3 迁移到 myfaces-bundle-2.0.3。
在这个新版本中,我经常遇到以下异常,远早于实际会话超时。

/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

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

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



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) – 

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) – 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

So尛奶瓶 2024-10-21 16:05:18

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

如果这是唯一的更改,那么它只是 MyFaces 2.0.3 中的一个错误。 向他们报告。同时,您可以尝试使用 Mojarra 而不是 MyFaces。

I recently moved from myfaces-2.0.0.beta3 to myfaces-bundle-2.0.3.

If that's the only change, then it's just a bug in MyFaces 2.0.3. Report it to them. In the meanwhile, you can try using Mojarra rather than MyFaces.

少女七分熟 2024-10-21 16:05:18

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文