IBM Support

PM50111: THE RESPONSE IS FLUSHED ON THE WAY OUT OF HANDLING THE SERVLET BUT THE SERVLET HAS ALREADY CLOSED THE STREAM.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The customer application filter does not work on WebSphere
    Application Server Version 8.0 while it works fine on previous
    releases.
    
    Seeing this error
    [9/19/11 15:59:27:200 GMT+05:30] 00000027 webapp        E
    com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E:
    [Servlet Error]-[xxxx]: java.io.IOException:
    xxxxx - Cannot flush a closed output stream
    

Local fix

  • When the compression filters are commented in the web.xml
    file, then the desired page is getting displayed properly.
    
    But customer need to use the compression filters for security
    reasons.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V8.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: The server is calling flush on the      *
    *                      OutputStream which is already closed    *
    *                      by the application.                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    An application resource has committed the wrapped response and
    further closed the OutputStream, but the server is calling
    flush() on the response while exiting the handling of the
    servlet which is causing the SRVE0293E error to be
    thrown.
    

Problem conclusion

  • The WebContainer code has been updated to not call the failing
    flush() if the OutputStream is closed.
    
    The new webcontainer custom property can be added,
    com.ibm.ws.webcontainer.invokeFlushAfterService = false
    (default=true)
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.3.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM50111

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-10-14

  • Closed date

    2011-12-19

  • Last modified date

    2012-07-27

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 October 2021