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

          Ted Goddard created issue -
          Hide
          Ted Goddard added a comment -

          Assigning to Ken for assignment.

          Show
          Ted Goddard added a comment - Assigning to Ken for assignment.
          Ted Goddard made changes -
          Field Original Value New Value
          Assignee Ken Fyten [ ken.fyten ]
          Ted Goddard made changes -
          Link This issue blocks ICE-5868 [ ICE-5868 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #22099 Wed Aug 04 16:59:30 MDT 2010 ted.goddard ExternalContext should not be cached (ICE-5968)
          Files Changed
          Commit graph MODIFY /icefaces2/trunk/icefaces/compat/samples/component-showcase/src/org/icefaces/application/showcase/view/bean/examples/component/outputResource/OutputResourceBean.java
          Ted Goddard made changes -
          Assignee Ken Fyten [ ken.fyten ] Ted Goddard [ ted.goddard ]
          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().
          Ted Goddard made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0-Beta2 [ 10242 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 2.0.0 [ 10230 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: