PQ57427: PROBLEM USING OUTPUTSTREAMWRITER FOR WAS V4.01 AND V3.5 | |||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||
![]() 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 is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: UQ65544 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 #: PQ57427
IBM Group: Software Group
Modified date: Jun 5, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.