PQ72193: JAVA.LANG.ILLEGALSTATEEXCEPTION: READER ALREADY OBTAINED IN WEBSPHERE 4.0.5

 A fix is available

4.0.6: WebSphere Application Server Version 4.0 Fix Pack 6



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.jar
Comments
APAR information
APAR number PQ72193
Reported component name WEBSPHERE AE NT
Reported component ID 5630A2201
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-03-18
Closed date 2003-04-02
Last modified date 2003-04-02

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
JSP          

SRLS

Fix information

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 #: PQ72193
IBM Group: Software Group
Modified date: Apr 2, 2003