Details
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
- blocks
-
ICE-5868 MyFaces 2 compatibility
- Closed
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().