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

        Ted Goddard created issue -
        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.
        Ted Goddard made changes -
        Field Original Value New Value
        Salesforce Case []
        Affects Version/s 2.0.0 [ 10230 ]
        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.)
        Ted Goddard made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Ted Goddard made changes -
        Salesforce Case []
        Component/s ACE-Components [ 10050 ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 2.0.1 [ 10255 ]
        Assignee Priority P2
        Assignee Ken Fyten [ ken.fyten ] Mark Collette [ mark.collette ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24119 Thu Mar 10 03:09:20 MST 2011 mark.collette ICE-6614 : fileEntry NullPointerException getProgressResourcePath
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/ace/component/src/org/icefaces/component/fileentry/FileEntryRenderer.java
        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
        Mark Collette made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Assignee Priority P2
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: