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 IExtendedResponseLocal 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 is sysrouted FROM one or more of the following: PQ61310 APAR is sysrouted TO one or more of the following: 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 #: PQ61390
IBM Group: Software Group
Modified date: May 21, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.