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


APAR

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 numberPQ58005
Reported component nameWAS STANDARD SU
Reported component ID5648C8302
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2002-02-19
Closed date2002-02-19
Last modified date2002-02-19

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

APAR is sysrouted TO one or more of the following:APAR is sysrouted FROM one or more of the following:PQ57613


Modules/Macros
ENGINE
APAR is sysrouted TO one or more of the following:Modules/Macros

Fix information
Fixed component nameWAS STANDARD SU
Fixed component ID5648C8302

Applicable component levels
R350 PSYUP











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
Software version: 350
Reference #: PQ58005
IBM Group: Software Group
Modified date: 2002-02-19