0
My IceFaces應用程序在會話過期時崩潰。它沒有顯示「用戶會話過期」或「網絡連接中斷」消息。IceFaces Session Expiry導致例外
我的猜測是相同的頁面再次加載,因爲支持bean代碼找不到會話變量,它會引發以下異常:
exception
javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: /main-template.jspx: User session has expired or it was invalidated.
root cause
java.lang.Exception: javax.faces.FacesException: Problem in renderResponse: /main-template.jspx: User session has expired or it was invalidated.
root cause
javax.faces.FacesException: Problem in renderResponse: /main-template.jspx: User session has expired or it was invalidated.
root cause
javax.el.ELException: /main-template.jspx: User session has expired or it was invalidated.
root cause
com.icesoft.faces.webapp.http.core.SessionExpiredException: User session has expired or it was invalidated.
root cause
java.lang.IllegalStateException: PWC2778: getAttribute: Session already invalidated
異步更新,並在JSP頁面中<ice:outputConnectionStatus />
組件。
關於如何阻止這種情況發生的任何想法?
注意:我是做了很多花哨的東西,像對重定向會話超時,並java.lang.Throwable的顯示錯誤頁面,但我評論了這一切 - 沒有運氣。當重定向和錯誤處理都打開時,應用程序第一次顯示錯誤頁面,然後過一會兒重定向到「session-expiry」頁面。
感謝
感謝您指出了這一點。我已經使用涉及自定義Error 500頁面的黑客(這顯然是錯誤的方式)實現了它。我會稍後嘗試實施此方法。 – Ali 2011-04-13 04:56:09