ICEfaces
  1. ICEfaces
  2. ICE-6442

WindowScopeManager Exception after session expiry

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces

      Description


      If a browser window is closed or reloaded, the following Exception may be seen in the logs:


      java.lang.NullPointerException
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:115)
              at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:107)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114)
              at org.icefaces.impl.application.WindowScopeManager.disposeViewScopeBeans(WindowScopeManager.java:237)
              at org.icefaces.impl.application.WindowScopeManager.disposeWindow(WindowScopeManager.java:222)
              at org.icefaces.impl.application.WindowScopeManager.handleResourceRequest(WindowScopeManager.java:100)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:119)
              at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:119)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:306)


      Further, Google Chrome may report a server error in the browser.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23725 Mon Jan 03 16:51:03 MST 2011 ted.goddard discard Exceptions due to lifecycle execution for WindowDisposed bean disposal (ICE-6442)
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/application/WindowScopeManager.java
        Ted Goddard created issue -
        Hide
        Ted Goddard added a comment -

        If the window is being disposed, any Exceptions that occur must simply be discarded: no useful action can be taken.

        Show
        Ted Goddard added a comment - If the window is being disposed, any Exceptions that occur must simply be discarded: no useful action can be taken.
        Hide
        Ted Goddard added a comment -

        The root cause is the need to run a JSF lifecycle to dispose @WindowDisposed View Scoped beans. When the session is expired, the lifecycle execution fails, but the beans have already been garbage collected at this time.

        Show
        Ted Goddard added a comment - The root cause is the need to run a JSF lifecycle to dispose @WindowDisposed View Scoped beans. When the session is expired, the lifecycle execution fails, but the beans have already been garbage collected at this time.
        Ted Goddard made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.1 [ 10255 ]
        Resolution Fixed [ 1 ]
        Assignee Ted Goddard [ ted.goddard ]
        Hide
        Ken Fyten added a comment -

        Ensure this change is included in the 2.0.x branch.

        Show
        Ken Fyten added a comment - Ensure this change is included in the 2.0.x branch.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Ted Goddard [ ted.goddard ] Ken Fyten [ ken.fyten ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23740 Thu Jan 06 11:06:23 MST 2011 nils.lundquist #ICE-6442
        Altered Styling
        Panel header size in Firefox was acting oddly at 100%. Fixing to 16px matches the default styling of the header. Reinforces the issue where custom-styled text plausibly exceeds the height of the header though.
        Files Changed
        Commit graph MODIFY /icefaces2/branches/ICE-6403/icefaces/compat/components/src/main/java/com/icesoft/faces/component/panelcollapsible/PanelCollapsibleRenderer.java
        Ken Fyten made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ken Fyten
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: