ICEfaces
  1. ICEfaces
  2. ICE-1909

Handle HttpSession.invalidate() calls gracefully

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7Beta1, 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      server

      Description

      Intercept HttpSession.invalidate() calls to shutdown framework+applications gracefully.

        Issue Links

          Activity

          Hide
          Mircea Toma added a comment -

          Intercepted HttpSession.invalidate and PortletSEssion.invalidate calls.

          Show
          Mircea Toma added a comment - Intercepted HttpSession.invalidate and PortletSEssion.invalidate calls.
          Hide
          Michael Thiem added a comment -

          As this is an often discussed issue in the forum, we should provide some
          best practices or a short tutorial on how to handle login/logout functionality
          in an ICEfaces / JSF environment

          Show
          Michael Thiem added a comment - As this is an often discussed issue in the forum, we should provide some best practices or a short tutorial on how to handle login/logout functionality in an ICEfaces / JSF environment
          Hide
          Mircea Toma added a comment -

          Intercept *Session.invalidate calls, shutdown framework gracefully, and then invalidate session.

          Show
          Mircea Toma added a comment - Intercept *Session.invalidate calls, shutdown framework gracefully, and then invalidate session.
          Hide
          Ken Fyten added a comment -

          Looks like we have regressed in 1.7 DR#3 on this issue.

          Show
          Ken Fyten added a comment - Looks like we have regressed in 1.7 DR#3 on this issue.
          Hide
          Mircea Toma added a comment -

          Delay the release of FacesContext.

          Show
          Mircea Toma added a comment - Delay the release of FacesContext.
          Hide
          Mircea Toma added a comment -

          The delay introduced another problem on app restart:

          java.lang.IllegalStateException
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1244)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
          at com.icesoft.faces.util.event.servlet.ContextEventRepeater.iceFacesIdDisposed(ContextEventRepeater.java:207)
          at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$3.run(MainSessionBoundServlet.java:123)

          Show
          Mircea Toma added a comment - The delay introduced another problem on app restart: java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1244) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at com.icesoft.faces.util.event.servlet.ContextEventRepeater.iceFacesIdDisposed(ContextEventRepeater.java:207) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$3.run(MainSessionBoundServlet.java:123)
          Hide
          Mircea Toma added a comment -

          Avoid the use of threads when shutting down.

          Show
          Mircea Toma added a comment - Avoid the use of threads when shutting down.

            People

            • Assignee:
              Unassigned
              Reporter:
              Mircea Toma
            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: