• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Practical WO pg 22
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Practical WO pg 22
      • From: Chuck Hill <email@hidden>
  • Prev by Date: RE: JVM Heap Size Issue in WO Java Monitor
  • Next by Date: Re: (EOM) entity logic
  • Previous by thread: RE: JVM Heap Size Issue in WO Java Monitor
  • Next by thread: Re: Practical WO pg 22
  • Index(es):
    • Date
    • Thread