You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Rene Gielen (Commented) (JIRA)" <ji...@apache.org> on 2011/12/10 13:17:40 UTC

[jira] [Commented] (WW-3621) IllegalStateException("Not allowed in event phase") thrown when calling PortletServletResponse.isCommitted

    [ https://issues.apache.org/jira/browse/WW-3621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166847#comment-13166847 ] 

Rene Gielen commented on WW-3621:
---------------------------------

This was introduced with Portlet 2.0 API, you looked into 1.0
                
> IllegalStateException("Not allowed in event phase") thrown when calling PortletServletResponse.isCommitted
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3621
>                 URL: https://issues.apache.org/jira/browse/WW-3621
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.1.1
>         Environment: Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Struts-2.0.11.2
>            Reporter: Martin Gainty
>             Fix For: 2.3.1
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> org.apache.struts2.portlet.servlet.PortletServletResponse contains the isCommitted method defined here
>  
>   public boolean isCommitted() {
>         if(portletResponse instanceof RenderResponse) {
>             return ((RenderResponse)portletResponse).isCommitted();
>         }
>         else {
>             throw new IllegalStateException("Not allowed in event phase");
>         }
>     }
> but PortletResponse does not contain the isCommitted method :
> $STRUTS2_HOME\lib>jar -xvf portlet-api-1.0.jar
> $STRUTS2_HOME\lib>javap .\javax\portlet\PortletResponse | grep isCommitted
> the PortletServletResponse.isCommitted() could never be succesfull

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira