PQ57613: CANNOT SET HEADER RESPONSE ALREADY COMMITTED, ERROR 500 AT RANDOM TIMES WHEN REFRESHING THE BROWSER.

APAR status
Closed as program error.

Error description
Brief Description: Getting error 500 at random times when
refreshing the browser.  It is throwing an execption Cannot
set header. Response already committed.
They have it down to when the header is set
after the response has been committed it throws the exception.
.
Keywords: WebSphere 4.0 HTTP Response status code 500
Illegal State Exception Already committed browser refresh
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server developers      *
*                 using setHeader, addHeader or setStatus      *
*                 after the response has been committed.       *
****************************************************************
* PROBLEM DESCRIPTION: IllegalStateException "Cannot set       *
*                      Header. Response aleady committed" when *
*                      attempting to modify headers after      *
*                      the response has been committed.        *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
When attempting to modify headers after the response
has been committed, WebSphere is throwing an
IllegalStateException "Cannot set header. Response
already committed.".   Per the Servlet 2.2 Specification, any
attempt to modify headers after a commit should not
throw an exception but should instead ignore the
setting of that header.
Problem conclusion
Changed the throwing of an IllegalStateException to a
warning message to be displayed if servlet engine
trace is enabled.
Temporary fix Comments
APAR information
APAR number PQ57613
Reported component name WEBSPHERE AES S
Reported component ID 5630A2302
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-02-07
Closed date 2002-02-19
Last modified date 2002-02-19

APAR is sysrouted FROM one or more of the following:

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

Modules/Macros
ENGINE          

Fix information
Fixed component name WEBSPHERE AES S
Fixed component ID 5630A2302

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ57613
IBM Group: Software Group
Modified date: Feb 19, 2002