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

        Mircea Toma created issue -
        Mircea Toma made changes -
        Field Original Value New Value
        Salesforce Case []
        Assignee Mircea Toma [ mircea.toma ]
        Mircea Toma made changes -
        Salesforce Case []
        Fix Version/s 2.0-Beta [ 10231 ]
        Ken Fyten made changes -
        Fix Version/s 2.0-Beta2 [ 10242 ]
        Fix Version/s 2.0-Beta1 [ 10231 ]
        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.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #21956 Mon Jul 19 15:04:57 MDT 2010 mircea.toma ICE-5895 Stop rendering hidden fields when ice.window or ice.view request attributes are missing. Log error message.
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/event/WindowAndViewIDSetup.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/application/WindowScopeManager.java
        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.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 2.0.0 [ 10230 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: