Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3621

IllegalStateException("Not allowed in event phase") thrown when calling PortletServletResponse.isCommitted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.1.1
    • 2.3.1
    • Other
    • None
    • Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
      Struts-2.0.11.2

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mgainty@hotmail.com Martin Gainty
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified