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 refreshLocal 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 is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: PQ58005 Modules/Macros
|
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
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.