ICEfaces
  1. ICEfaces
  2. ICE-6614

fileEntry NullPointerException getProgressResourcePath

    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: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces

      Description

      The following stack trace may be observed:


      java.lang.NullPointerException
      at org.icefaces.component.fileentry.PushUtils.getProgressResourcePath(PushUtils.java:88)
      at org.icefaces.component.fileentry.FileEntry.storeConfigForNextLifecycle(FileEntry.java:117)
      at org.icefaces.component.fileentry.FileEntryRenderer.encodeBegin(FileEntryRenderer.java:43)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:824)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1641)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)

        Activity

        Hide
        Ted Goddard added a comment -

        This exception is displayed if fileEntry is not included within a form. The lack of a form should not block rendering of the entire page, but should disable the fileEntry component. In development mode a facesMessage should indicate that fileEntry requires a form.

        Show
        Ted Goddard added a comment - This exception is displayed if fileEntry is not included within a form. The lack of a form should not block rendering of the entire page, but should disable the fileEntry component. In development mode a facesMessage should indicate that fileEntry requires a form.
        Hide
        Ted Goddard added a comment -

        Developer-friendliness aspect, so no particular priority. (However, the Exception when the form is missing is very mysterious.)

        Show
        Ted Goddard added a comment - Developer-friendliness aspect, so no particular priority. (However, the Exception when the form is missing is very mysterious.)
        Hide
        Mark Collette added a comment -

        Added code to detect the lack of a parent form, and then do the standard behavior of throwing an appropriate FacesException, which results in the debug page showing what's wrong. So now it's much more clear what's wrong.

        Subversion 24119

        Show
        Mark Collette added a comment - Added code to detect the lack of a parent form, and then do the standard behavior of throwing an appropriate FacesException, which results in the debug page showing what's wrong. So now it's much more clear what's wrong. Subversion 24119

          People

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

            Dates

            • Created:
              Updated:
              Resolved: