ICEfaces
  1. ICEfaces
  2. ICE-10936

NPE being thrown when navigating

    Details

      Description

      The customer (FedEx) is reporting seeing a NPE being thrown when the navigate through their app. The stack trace looks to point to the same code that was added in rev 46957:

      <Jan 26, 2016 12:00:57 PM EST> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <Error Rendering
       View[/xhtml/messageLists/inboxAndHoldList.xhtml]
      java.lang.NullPointerException
              at org.icefaces.impl.context.DOMPartialViewContext.shouldApplyChange(DOMPartialViewContext.java:493)
              at org.icefaces.impl.context.DOMPartialViewContext.applyBrowserChanges(DOMPartialViewContext.java:520)
              at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:141)
              at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819)
              Truncated. see log file for complete stacktrace
      >
      2016-01-26 12:00:57,447 ERROR (cpc-ui-error:94) - Uncaught exception has occurred
       Error code : 7ee18ee7
       Referer : http://localhost:7271/cpc-ui/xhtml/alert/alertTool.jsf
       Request URI : /cpc-ui/xhtml/alert/alertTool.jsf
       Exception :
      null
      org.icefaces.impl.context.DOMPartialViewContext.shouldApplyChange(DOMPartialViewContext.java:493)
      org.icefaces.impl.context.DOMPartialViewContext.applyBrowserChanges(DOMPartialViewContext.java:520)
      org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:141)
      javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
      javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819)
      com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:421)
      com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
      javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
      com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
      weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
      weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
      weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
      weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
      weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
      weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
      weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
      weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
      weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

        Activity

        Hide
        Mircea Toma added a comment -

        Test for non-null ID in DOMPartialViewContext.applyBrowserChanges() attribute before applying browser changes.

        Show
        Mircea Toma added a comment - Test for non-null ID in DOMPartialViewContext.applyBrowserChanges() attribute before applying browser changes.
        Hide
        Liana Munroe added a comment -

        Regressions were run with ICEfaces 4 samples using r47036. NPE was not encountered during testing.

        Show
        Liana Munroe added a comment - Regressions were run with ICEfaces 4 samples using r47036. NPE was not encountered during testing.
        Hide
        Mircea Toma added a comment -

        The stack trace indicates that either the document or the ID of the searched element is null. Both variables are checked now so I really need a test case to proceed further.

        Show
        Mircea Toma added a comment - The stack trace indicates that either the document or the ID of the searched element is null. Both variables are checked now so I really need a test case to proceed further.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: