ICEfaces
  1. ICEfaces
  2. ICE-5090

null DOM during applyBrowserDOMChanges

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-Alpha1
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces, WebMC
    • Affects:
      Compatibility/Configuration
    • Workaround Exists:
      Yes
    • Workaround Description:
      Need to use "ice:form" with compat components/lib instead of "h:form".

      Description

      java.lang.NullPointerException
      at org.icefaces.context.DOMPartialViewContext.applyBrowserChanges(DOMPartialViewContext.java:190)
      at org.icefaces.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:116)
      at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:988)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1610)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:368)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)

      Page must be reloaded to get past the NullPointerException.

      This exception is observed in the chat panel on WebMC after initially logging in.

        Issue Links

          Activity

          Hide
          Ted Goddard added a comment -

          javax.faces.ViewState is not present in the form.

          Show
          Ted Goddard added a comment - javax.faces.ViewState is not present in the form.
          Hide
          Ted Goddard added a comment - - edited

          The null DOM was fixed by changing an h:form in the page to an ice:form. For this application, the h:form was not including javax.faces.ViewState under all conditions, resulting in submissions to the server without the identifying ViewState key (hence no previous DOM could be found).

          It is not clear why this occurred with h:form, it may be due to the presence of multiple h:form on the same page (with the bug being that the ViewState key is added only to the first one).

          Show
          Ted Goddard added a comment - - edited The null DOM was fixed by changing an h:form in the page to an ice:form. For this application, the h:form was not including javax.faces.ViewState under all conditions, resulting in submissions to the server without the identifying ViewState key (hence no previous DOM could be found). It is not clear why this occurred with h:form, it may be due to the presence of multiple h:form on the same page (with the bug being that the ViewState key is added only to the first one).
          Hide
          Ted Goddard added a comment -

          The auction demo also contains multiple forms, so this is unlikely to be the problem.

          Show
          Ted Goddard added a comment - The auction demo also contains multiple forms, so this is unlikely to be the problem.
          Hide
          Ted Goddard added a comment -

          On the other hand, this may occur when multiple h:form components are updated by the same DOM update. It is possible that multiple forms are not updated simultaneously in auction.

          Show
          Ted Goddard added a comment - On the other hand, this may occur when multiple h:form components are updated by the same DOM update. It is possible that multiple forms are not updated simultaneously in auction.
          Hide
          Ken Fyten added a comment -

          Known Issue: Need to use ice:form with compat components/lib.

          Show
          Ken Fyten added a comment - Known Issue: Need to use ice:form with compat components/lib.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: