ICEfaces
  1. ICEfaces
  2. ICE-3873

NPE on page reload with state saving enabled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8DR#1
    • Fix Version/s: 1.8DR#2, 1.8
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      server

      Description

      When running component-showcase with state saving turned on reloading the page after clicking any of the command links at least once I get the
      following exception:

      java.lang.NullPointerException
      com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:399)
      com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:158)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
      .........

      The stack trace shows that when D2DViewHandler.renderResponse is invoked
      the ViewRoot is null.

        Activity

        Hide
        Mircea Toma added a comment -

        Don't skip restore view phase on page reload when state saving is enabled.

        Show
        Mircea Toma added a comment - Don't skip restore view phase on page reload when state saving is enabled.
        Hide
        Mandeep Hayher added a comment -

        Tested and verified successfully on Tomcat6, FF3 & ICEFaces1.8DR2 build 13 using state-save=true.
        Component-showcase was used as test application.

        Show
        Mandeep Hayher added a comment - Tested and verified successfully on Tomcat6, FF3 & ICEFaces1.8DR2 build 13 using state-save=true. Component-showcase was used as test application.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: