Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-112

RenderResponseImpl.setBufferSize breaks servlet spec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1-rc2
    • unspecified
    • portlet container
    • None

    Description

      The RenderResponseImpl.setBufferSize method always throws an exception. The servlet spec states that this method must be called before any response content is written or an exception will be thrown and that it cannot be called after content is starting to be written.

      When running in WebLogic the JSP parsing/rendering libraries used create code that calls the setBufferSize on the response. This results in an un-caught exception being thrown on WebLogic any time a JSP is rendered by a portlet.

      Commenting out the setBufferSize/getBufferSize methods of the RenderResponseImpl seem to fix the problem since the calls are just passed to the underlying HttpServletResponse.

      Attachments

        1. jira112_patch.txt
          13 kB
          Ulrich Kuester
        2. jira112_2_patch.txt
          11 kB
          Ulrich Kuester
        3. jira112_3_patch.txt
          11 kB
          Ulrich Kuester

        Activity

          People

            Unassigned Unassigned
            edalquist Eric Dalquist
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: