PQ57491: "CANNOT FORWARD: RESPONSE ALREADY COMMITTED" WHEN A JSP INCLUDESANOTHER JSP, AND THE INCLUDED JSP THROWS AN EXCEPTION.

APAR status
Closed as program error.

Error description
JSP includes another jsp. That jsp throws exception. We try to
forward to the error page but buffer has already been flushed.
The result: cannot forward: response already committed
KEYWORDS: WebSphere jsp include forward Illegal State
Exception 4.0
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of an     *
*                 Error Page defined in the JSP.  The error    *
*                 page is not called when an run-time error    *
*                 happens in the JSP that is included by       *
*                 some other jsp.                              *
****************************************************************
* PROBLEM DESCRIPTION: Error Page defined in the JSP is not    *
*                      called when an run-time error happens   *
*                      in the JSP that is included by some     *
*                      other jsp.                              *
*                       throw an ServletException saying       *
*                      Cannot forward: Response already        *
*                      commited.                               *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Error Page defined in the JSP is not called when an run-time
error happens in the JSP that is included by some other jsp.
 throw an ServletException saying Cannot forward: Response
already commited.
Problem conclusion
Error Page defined in the JSP is not called when an run-time
error happens in the JSP that is included by some other jsp.
Thr problem is avoided by checking if the response has been
commited.  If not, forward to the error page else include to
the error page
 throw an ServletException saying Cannot forward: Response
already commited.
Temporary fix
efix is available in wasdoc0\PQ57491
Comments
APAR information
APAR number PQ57491
Reported component name WEBSPHERE AE NT
Reported component ID 5630A2201
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-02-04
Closed date 2002-02-13
Last modified date 2002-02-13

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
JSP          

Fix information
Fixed component name WEBSPHERE AE NT
Fixed component ID 5630A2201

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 #: PQ57491
IBM Group: Software Group
Modified date: Feb 13, 2002