查看过期异常
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果这是唯一的更改,那么它只是 MyFaces 2.0.3 中的一个错误。 向他们报告。同时,您可以尝试使用 Mojarra 而不是 MyFaces。
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.
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.