[ 
https://issues.apache.org/jira/browse/TRINIDAD-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667506#action_12667506
 ] 

Scott O'Bryan commented on TRINIDAD-1376:
-----------------------------------------

The RenderKitDecorator logic might be new and we might need to trace down and 
revisit the dependency.  But the RequestContext needs to be released at every 
phase.  Neither the request scope nor the thread are guaranteed to be the same 
between action and render.

What I find curious, however, is that it works for some of the Trinidad 
extensions we've een working on.

Scott

> NullPointerException because RequestContext released after action request.
> --------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1376
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1376
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Portlet
>    Affects Versions:  1.2.11-core
>            Reporter: Felix Röthenbacher
>            Assignee: Scott O'Bryan
>
> RequestContext is released after action request which results in a 
> NullPointerException in the following render request.
> The problem is in the method GlobalConfiguratorImpl.endRequest(final 
> ExternalContext externalContext)
> Calling _releaseRequestContext(externalContext); removes the RequestContext 
> from ThreadLocal.
> Any subsequent calls to RequestContext.getCurrentInstance() return null which 
> breaks the render request.

-- 
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