[ 
https://issues.apache.org/jira/browse/TRINIDAD-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Winer resolved TRINIDAD-59.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.2-core
         Assignee: Adam Winer

Fixed.

> 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
>            Assignee: Adam Winer
>            Priority: Minor
>             Fix For: 1.0.2-core
>
>
> 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