Practical WO pg 22
Practical WO pg 22
- Subject: Practical WO pg 22
- From: Nathan Dumar <email@hidden>
- Date: Tue, 23 Nov 2004 02:46:24 -0500
When trying to use the Listing 1-9: Class to Redirect NSLog and/or
System.out and System.err Messages to log4j, I get an error on the line
that reads "super(null);"
[2004-11-23 02:33:26 EST] <main> A fatal exception occurred: Null
output stream
[2004-11-23 02:33:26 EST] <main> java.lang.NullPointerException: Null
output stream
at java.io.PrintStream.<init>(PrintStream.java:71)
at java.io.PrintStream.<init>(PrintStream.java:93)
at java.io.PrintStream.<init>(PrintStream.java:56)
at LogPrintStream.<init>(LogPrintStream.java:19)
at Application.<init>(Application.java:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
Apparently, the PrintStream constructor wants an OutputStream. Which
one will make this work as intended? Or am I doing something wrong?
Thank you for any pointers.
Nathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden