PQ80846: JAVA.LANG.ILLEGALSTATEEXCEPTION: READER ALREADY OBTAINED

 A fix may be available

Obtain the fix for this APAR



APAR status
Closed as program error.

Error description
customers app receives the following error:
java.lang.IllegalStateException : Reader already obtained
at com.ibm.servlet.engine.srt.SRTServletRequest.getInputStream
 (SRTServletRequest.java:303)
at com.ibm.servlet.engine.srt.SRTServletRequest.parseParameters
 (SRTServletRequest.java:610)
at com.ibm.servlet.engine.srt.SRTServletRequest.getParameter
 (SRTServletRequest.java:221)
at com.ibm.servlet.engine.srt.SRTServletRequestStub.getParameter
 (SRTServletRequestStub.java:290)
at com.ibm.servlet.engine.webapp.HttpServletRequestProxy.getPara
 (HttpServletRequestProxy.java:159)
at org.apache.jasper.runtime.JspServlet.preCompile
 (JspServlet.java:870)
...
recreated with an app where:
jsp1:
  posts servlet1
servlet1:
  req.getReader().getLine() & req.setAttribute(x,y)
  this.getServletContext().getRequestDispatcher(jsp2).forward
  (req, resp)
jsp2:
  request.getAttribute(x);
Local fix
HBC
Problem summary
****************************************************************
* USERS AFFECTED: All users of WebSphere Application Server    *
*                 version 4.0.1 for z/OS and OS/390.           *
****************************************************************
* PROBLEM DESCRIPTION: An IllegalStateException may be thrown  *
*                      if a servlet handling an HTTP post      *
*                      request obtains the BufferedReader      *
*                      from the HttpRequestObject and then     *
*                      fowards the request to a JSP which has  *
*                      not yet been compiled. This may result  *
*                      in the following being displayed to the *
*                      ncf log:                                *
*                                                              *
*                      SRTServletReq X Reader already obtained *
*                      java.lang.IllegalStateException: Reader *
*                      already obtained                        *
*                        at com.ibm.servlet.engine.srt.        *
*                          SRTServletRequest.getInputStream    *
*                        at com.ibm.servlet.engine.srt.        *
*                          SRTServletRequest.parseParameters   *
*                        at com.ibm.servlet.engine.srt.        *
*                          SRTServletRequest.getParameter      *
*                      ...                                     *
*                        at com.ibm.servlet.engine.webapp.     *
*                          WebAppRequestDispatcher.dispatch    *
*                        at com.ibm.servlet.engine.webapp.     *
*                          WebAppRequestDispatcher.forward     *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
If a servlet handling an HTTP post request obtains the
BufferedReader from the HttpRequestObject and then forwards the
request to a JSP which has not yet been compiled, an
IllegalStateException may be thrown.
Problem conclusion
Changes are made to WebSphere Application Server such that an
IllegalStateException is not thrown when a servlet handling an
HTTP post request forwards the request to a JSP which has not
yet been compiled.

APAR PQ80846 is associated with SERVICE LEVEL W401608 of
WebSphere Application Server version 4.0.1 for z/OS and OS/390.
Temporary fix Comments
APAR information
APAR number PQ80846
Reported component name WEBSPHERE OS/39
Reported component ID 5655A9800
Reported release 401
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-11-12
Closed date 2004-01-20
Last modified date 2004-02-04

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
EJSJWBJR EJSJWCWC        

Fix information
Fixed component name WEBSPHERE OS/39
Fixed component ID 5655A9800

Applicable component levels
R401 PSY UQ84251    UP04/01/23 P F401

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS
Operating system(s):
Software version: 401
Software edition:
Reference #: PQ80846
IBM Group: Software Group
Modified date: Feb 4, 2004