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

NullPointerException at SerializedViewCollection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.15
    • 2.0.22, 2.1.16
    • None
    • None
    • Windows, Myfaces 2.1.5, Weblogic 12c.

    Description

      I have recently upgraded my WebApp to MyFaces 2.1.15 and after that I am experiencing the below error infrequently,

      java.lang.NullPointerException: null values not allowed
      at org.apache.commons.collections.map.AbstractReferenceMap.put(AbstractReferenceMap.java:251)
      at org.apache.myfaces.application.viewstate.SerializedViewCollection.add(SerializedViewCollection.java:162)
      at org.apache.myfaces.application.viewstate.ServerSideStateCacheImpl.saveSerializedViewInServletSession(ServerSideStateCacheImpl.java:300)
      at org.apache.myfaces.application.viewstate.ServerSideStateCacheImpl.saveSerializedView(ServerSideStateCacheImpl.java:578)
      at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.saveState(HtmlResponseStateManager.java:146)
      at org.apache.myfaces.application.StateManagerImpl.saveView(StateManagerImpl.java:198)
      at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:2052)
      at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:305)
      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)

      I have set the following in web.xml file,
      org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE = hard-soft
      org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION = 30,

      org.apache.myfaces.SERIALIZE_STATE_IN_SESSION= false,
      javax.faces.STATE_SAVING_METHOD = false

      I have checked similar issue in earlier version too,
      https://issues.apache.org/jira/browse/MYFACES-1296
      but this seems to be little different from the exception stack.

      In my WebApp, this issue comes infrequently. i.e. it comes randomly in random pages.
      Please look into it since it seems to be an issue with the version 2.1.15

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            avijit AVIJIT CHAKRABORTY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: