PQ61390: SERVLET CANNOT FORWARD TO ANOTHER SERVLET

APAR status
Closed as program error.

Error description
A forward from a servlet to a JSP breaks due to a classcast
exception in HttpServletResponseProxy. This only occurs in a spe
cific case.
 Servlet A forwards to Servlet B. When Servlet B is inside of th
e internal dispatch forward, resetBuffer is called and causes a
ClassCastException because the response isa StoredResponse and
cannot be cast to an IExtendedResponse
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server Developers      *
*                 using IBM's custom StoredResponse class or   *
*                 enabling MimeFiltering.                      *
****************************************************************
* PROBLEM DESCRIPTION: ClassCastException is thrown when       *
*                      attempting to invoke the forward        *
*                      method and using WebSphere's custom     *
*                      StoredResponse class.                   *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
WebSphere's custom response wrapper called StoredResponse
does not implement a WebSphere required interface that other
ServletResponse classes require.  When WebSphere attempts
to forward to another resource and the Response object
is of type StoredResponse, a ClassCastException is thrown
since StoredResponse did not implement a method to clear
the response buffer which is required by the servlet 2.2
specification.
Problem conclusion
To prevent the ClassCastException, implemented all WebSphere
required ServletResponse interfaces for StoredResponse.
Temporary fix Comments
APAR information
APAR number PQ61390
Reported component name WEBSPHERE AE NT
Reported component ID 5630A2201
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-05-21
Closed date 2002-05-21
Last modified date 2002-05-21

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

APAR is sysrouted TO one or more of the following:

Modules/Macros
ENGINE          

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 #: PQ61390
IBM Group: Software Group
Modified date: May 21, 2002