ICEfaces
  1. ICEfaces
  2. ICE-5968

MyFaces 2.0 downloadResources NullPointerException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEfaces 2.0, MyFaces 2.0

      Description


      DownloadResources in component-showcase produces the following Exception:


      java.lang.NullPointerException
      org.apache.myfaces.context.servlet.ServletExternalContextImplBase.getResourceAsStream(ServletExternalContextImplBase.java:128)
      org.icefaces.application.showcase.view.bean.examples.component.outputResource.MyResource.open(OutputResourceBean.java:118)
      com.icesoft.faces.component.outputresource.RegisteredResource.open(OutputResource.java:460)
      com.icesoft.faces.context.ResourceRegistryLocator$DynamicResourceDispatcherAdapter$DynamicResourceAdapter.open(ResourceRegistryLocator.java:116)
      org.icefaces.push.DynamicResourceDispatcher$ResourceServer.respond(DynamicResourceDispatcher.java:227)

        Issue Links

          Activity

          Hide
          Ted Goddard added a comment -

          Assigning to Ken for assignment.

          Show
          Ted Goddard added a comment - Assigning to Ken for assignment.
          Hide
          Ted Goddard added a comment -

          OutputResourceBean was caching the ExternalContext between requests. This appeared to cause no problem for mojarra, but there is no guarantee in the specification that the object should be valid across requests. The application code has been modified to use FacesContext.getCurrentInstance().getExternalContext().

          Show
          Ted Goddard added a comment - OutputResourceBean was caching the ExternalContext between requests. This appeared to cause no problem for mojarra, but there is no guarantee in the specification that the object should be valid across requests. The application code has been modified to use FacesContext.getCurrentInstance().getExternalContext().

            People

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

              Dates

              • Created:
                Updated:
                Resolved: