Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3638

NPE in ServerSideStateCacheImpl

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.9
    • 2.0.16, 2.1.10
    • None
    • None

    Description

      I'm getting the following NPE when having a request which leads to a 404:

      Nov  9 09:00:45 j02 java.lang.NullPointerException
      Nov  9 09:00:45 j02      at org.apache.myfaces.renderkit.ServerSideStateCacheImpl$CounterSessionViewStorageFactory.createSerializedViewKey(ServerSideStateCacheImpl.java:1413)
      Nov  9 09:00:45 j02      at org.apache.myfaces.renderkit.ServerSideStateCacheImpl$CounterSessionViewStorageFactory.createSerializedViewKey(ServerSideStateCacheImpl.java:1392)
      Nov  9 09:00:45 j02      at org.apache.myfaces.renderkit.ServerSideStateCacheImpl.saveSerializedViewInServletSession(ServerSideStateCacheImpl.java:318)
      Nov  9 09:00:45 j02      at org.apache.myfaces.renderkit.ServerSideStateCacheImpl.saveSerializedView(ServerSideStateCacheImpl.java:1036)
      Nov  9 09:00:45 j02      at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.saveState(HtmlResponseStateManager.java:149)
      Nov  9 09:00:45 j02      at org.apache.myfaces.application.StateManagerImpl.saveView(StateManagerImpl.java:253)
      Nov  9 09:00:45 j02      at org.apache.myfaces.shared.view.JspViewDeclarationLanguageBase.renderView(JspViewDeclarationLanguageBase.java:221)
      Nov  9 09:00:45 j02      at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
      Nov  9 09:00:45 j02      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      Nov  9 09:00:45 j02      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      Nov  9 09:00:45 j02      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      Nov  9 09:00:45 j02      at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)
      Nov  9 09:00:45 j02      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
      Nov  9 09:00:45 j02      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
      Nov  9 09:00:45 j02      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
      Nov  9 09:00:45 j02      at org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.render(CodiLifecycleWrapper.java:126)
      Nov  9 09:00:45 j02      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
      

      Attachments

        1. MYFACES-3638.patch
          0.6 kB
          Marcus Büttner
        2. MYFACES-3638-alternate-fix-1.patch
          1 kB
          Leonardo Uribe
        3. MYFACES-3638-proposal.diff
          83 kB
          Leonardo Uribe

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment