ICEfaces
  1. ICEfaces
  2. ICE-1171

NPE in BlockingServlet when session expires

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      Description

      When the session expires, instead of the SessionExpiredException catch code in
      BlockingServlet handling the probem, a NullPointerExcepetion is thrown
      beforehand, which keeps any response from being sent. On the browser end, the
      Javascript just sees that there's no response from the socket, until some
      timeout occurs, and it's shown as a disconnected socket. We need to properly
      trap the condition that leads to the NPE, and do the session timeout handling.

      Deryk and Ted think it's because the call to HttpServletRequest.getSession()
      will create an empty bogus HttpSession, when instead we should use
      HttpServletRequest.getSession(false), and trap the null session.

      Tested using the latest build of ICEfaces 1.5.2 (from Jan 10, 2007 in the
      evening) and running with the HEAD Facelets component-showcase inside of JBoss
      4.0.4 GA.

        Activity

        Mark Collette created issue -
        Icefaces Administrator made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1223 12440
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mark Collette
            Reporter:
            Mark Collette
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: