PQ80846: JAVA.LANG.ILLEGALSTATEEXCEPTION: READER ALREADY OBTAINED | |||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||
![]() 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 HBCProblem 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 is sysrouted FROM one or more of the following: 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 for z/OS
Operating system(s):
Software version: 401
Software edition:
Reference #: PQ80846
IBM Group: Software Group
Modified date: Feb 4, 2004
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.