Invoking ResourceServlet via FacesServlet leads to NPE
------------------------------------------------------

                 Key: TRINIDAD-59
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-59
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 1.0.1-core
            Reporter: Adam Winer
            Priority: Minor


Create an URL like:
  
http://localhost:8080/trinidad-demo-1/faces/adf/styles/cache/minimal-desktop-2103903610-en-webkit-cmp.css

and you get a NPE:

        at 
org.apache.myfaces.trinidadinternal.config.dispatch.DispatchResponseConfiguratorImpl.getContentType(DispatchResponseConfiguratorImpl.java:74)
        at 
org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.createResponseWriter(CoreRenderKit.java:518)
        at 
org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.createResponseWriter(RenderKitDecorator.java:50)

This happens because the ResourceServlet creates and destroys a FacesContext - 
but
the FacesServlet has already done so.  Oops!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to