struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Newton (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (WW-3621) IllegalStateException("Not allowed in event phase") thrown when calling PortletServletResponse.isCommitted
Date Tue, 10 May 2011 02:55:03 GMT

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

Dave Newton edited comment on WW-3621 at 5/10/11 2:54 AM:
----------------------------------------------------------

Yet it compiles, hmm.

(Although I haven't built it for a couple of weeks now; I suppose it could have changed.)

      was (Author: newton_dave):
    Yet it compiles, hmm.
  
> 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
>   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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message