PQ57427: PROBLEM USING OUTPUTSTREAMWRITER FOR WAS V4.01 AND V3.5

 A fix may be available

Obtain the fix for this APAR



APAR status
Closed as program error.

Error description
The following code is used to demonstrate the error reported by
this apar:
OutputStreamWriter osw = new OutputStreamWriter(System.out);
PrintWriter  out;
out = res.getWriter();
res.setContentType("text/plain");
out.println("Testing OSW");
   try {
   System.out.println("OSW TEST");
   osw.write(" ==> on OSW -- Test Stuff <==\n");
   osw.flush();
}
catch (Exception e) {
   System.out.println("OSW KACK:" + e);
   e.printStackTrace(System.out);

}
----------------------
The error is:
1)  When running v4.01 (through the WebContainer), only the
    only the output from the System.out.println is written to
    the joblog.  The output from OutputStreamWriter does not
    appear.
.
2)  When running v3.5 (through the Plugin), if no value is
    entered on the appserver.logdirectory property (default to
    STDOUT), only the output from the System.out.println appears
    (same as #1 above).  However, if a HFS directory is entered
    on the appserver.logdirectory property, both the output from
    the System.out.println and the OutputSreamWriter are written
    to the ncf.log file in that directory.
.
The customer expects for both outputs to be written in all
instances.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: All users of WebSphere Application Server    *
*                 V4.0.1 for z/OS and OS/390                   *
****************************************************************
* PROBLEM DESCRIPTION: When the OutputStreamWriter is used to  *
*                      display output, nothing shows up in     *
*                      joblog.                                 *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
The reason no output is seen from the OutputStreamWriter
on WebSphere V4.0.1 is due to the fact that we extend the
PrintStream class and redirect the standard output stream to a
PrintStreamWriter for our environment. The PrintStreamWriter
class directs output messages to our standard native
outputstreams.  Not all of the methods of the PrintStream are
overidden, so not all method produce visible results.
Problem conclusion
The problem reported by this APAR has been resolved by adding a
method to the PrintStreamWriter class to direct the output to
visible output.

APAR PQ57427 is associated with SERVICE LEVEL W401052 of
WebSphere Application Server V4.0.1 for z/OS and OS/390.
Temporary fix Comments
APAR information
APAR number PQ57427
Reported component name WEBSPHERE OS/39
Reported component ID 5655A9800
Reported release 401
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-02-04
Closed date 2002-04-24
Last modified date 2002-06-05

APAR is sysrouted FROM one or more of the following:

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

Modules/Macros
BBOLRT BBOLSS BBOUBINF BBOZ0229 BBOZ0812 BBOZ0813

Fix information
Fixed component name WASKBASE
Fixed component ID 5655A9801

Applicable component levels
R401 PSY UQ65544    UP02/05/02 P F205

  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 #: PQ57427
IBM Group: Software Group
Modified date: Jun 5, 2002