ICEfaces
  1. ICEfaces
  2. ICE-5895

NPE in WindowAndViewIDSetup when navigating after session was invalidated

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha3
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      server

      Description

      NPE exception is thrown in system listener when navigation is executed after the session was invalidated:

      java.lang.NullPointerException
          at org.icefaces.event.WindowAndViewIDSetup$1.encode(WindowAndViewIDSetup.java:52)
          at org.icefaces.event.UIOutputWriter.encodeBegin(UIOutputWriter.java:32)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1611)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
          at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
          at org.icefaces.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:151)

        Activity

        Hide
        Ted Goddard added a comment -

        First test to see if the windowID and the ice.view are available. If they are not available (due to an Exception or other null condition) the hidden fields should not be written but this should be logged as errors.

        Show
        Ted Goddard added a comment - First test to see if the windowID and the ice.view are available. If they are not available (due to an Exception or other null condition) the hidden fields should not be written but this should be logged as errors.
        Hide
        Mircea Toma added a comment -

        Stop rendering hidden fields when ice.window or ice.view request attributes are missing. Logging error message with info about missing attribute.

        Show
        Mircea Toma added a comment - Stop rendering hidden fields when ice.window or ice.view request attributes are missing. Logging error message with info about missing attribute.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: