PQ72193: JAVA.LANG.ILLEGALSTATEEXCEPTION: READER ALREADY OBTAINED IN WEBSPHERE 4.0.5 | |||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description Customer is receiving following error on WebSphere v.4.0.5. . java.lang.IllegalStateException: Reader already obtained . Customer's application works in following way. 1. The application receives data through an HTTP post. 2. They call servletRequest.getReader() to get a reference to the request object's reader. 3. they use the reader to read data from the request 4. They save the data to a file. 5. They forward to a JSP which sends a response to the sender.Local fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server installations * * receiving POST data, call getReader and * * forward the data for JSP requests * **************************************************************** * PROBLEM DESCRIPTION: Data sent by a client using HTTP post. * * The data is read by a servlet * * using request reader and then forward * * to a jsp. * * WAS throws an IllegalStateException * * "Reader already obtained". This * * exception was not caught and prevents * * the forward operation to complete. * **************************************************************** * RECOMMENDATION: * **************************************************************** This problem is caused by an uncaught exception which was generated when the customer's JSP/Servlet has explicitly read the request's reader which is allowed. The uncaught exception stopped future processing of the data. In this case, forwarding of the data to a JSP is stopped.Problem conclusion Added exception handling to catch IllegalStateException when checking if the request parameter jsp_precompile was sent with the request.Temporary fix PQ72193_fix.jarComments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
SRLS
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ72193
IBM Group: Software Group
Modified date: Apr 2, 2003
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.