【问题标题】:ViewExpiredException查看过期异常
【发布时间】:2023-04-10 18:38:01
【问题描述】:

我正在使用 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。 但这无济于事



我无法让 mojarra-2.0.4-FCS 与 GAE 一起使用。
修改 WebConfiguration.java 后,mojarra-2.0.3-FCS 正在使用 GAE。
但我经常得到新的异常
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) – 

【问题讨论】:

    标签: google-app-engine jsf-2 myfaces


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

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

      如果这是唯一的变化,那么这只是 MyFaces 2.0.3 中的一个错误。 Report 给他们。同时,您可以尝试使用Mojarra 而不是MyFaces。

      【讨论】:

        猜你喜欢
        • 2023-03-20
        • 2011-03-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-03-26
        • 1970-01-01
        • 1970-01-01
        • 2020-07-29
        相关资源
        最近更新 更多