You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org> on 2009/02/03 22:53:59 UTC

[jira] Commented: (TRINIDAD-1376) NullPointerException because RequestContext released after action request.

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

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

For this issue I have created a RequestStateMap which can be used to store an object from an action to a single render.  The RequestContext object is now stored on this map.  I'll be uploading a patch soon which should also include a patch for TRINIDAD-1377, TRINIDAD-1383, and TRINIDAD-1351.

> 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
>         Attachments: TRINIDAD-1376-patch.txt
>
>
> 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.