PQ50489: JSPS THROW AN EXCEPTION IF OUTPUTSTREAM ALREADY OBTAINED


APAR

APAR status
Closed as program error.

Error description
JSPs throw an IllegalStateException if the ServletResponse
OutputStream has already been obtained by a prior resource.
The method JspWriterImpl.initOut needs to be changed to work
with the stream that's already available.
Defect 104670
Local fix
Problem summary
JSPs throw an IllegalStateException if the ServletResponse Outpu
been obtained by a prior resource.  The method JspWriterImpl.ini
changed to work with the stream that's already available.
current code:
       protected void initOut() throws IOException {
              if (out == null)
                     out = response.getWriter();
       }
new code:current code:protected void initOut() throws IOException {if (out == null)out = response.getWriter();}
protected void initOut() throws IOException { if (out == null) { try { out = response.getWriter(); } catch(IllegalStateException ignoredException) { out = new OutputStreamWriter(response. getOutputStream(), response.getCharacterEncoding()) ; } } }
new code:protected void initOut() throws IOException {if (out == null) {try {out = response.getWriter();} catch(IllegalStateExceptionignoredException) {out = newOutputStreamWriter(response.getOutputStream(),response.getCharacterEncoding());}}}
Problem conclusion
Temporary fix
Comments
APAR information
APAR numberPQ50489
Reported component nameWAS ADVANCED AI
Reported component ID5648C8400
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2001-07-11
Closed date2001-07-18
Last modified date2001-07-18

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:APAR is sysrouted FROM one or more of the following:


Modules/Macros
JSP
APAR is sysrouted TO one or more of the following:Modules/Macros

Fix information
Fixed component nameWAS ADVANCED AI
Fixed component ID5648C8400

Applicable component levels
R350 PSYUP











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
Software version: 350
Reference #: PQ50489
IBM Group: Software Group
Modified date: 2001-07-18