Logging broken ?

Andrew Haley aph@redhat.com
Wed Apr 6 11:04:00 GMT 2005


Andreas Grunewald writes:
 > Thanks for the information that I had to put this into my path.
 > But it didn't really help much, this is my output.
 > 
 > NNow starting to LOG
 > This is tLog java.util.logging.Logger@d68bb8
 > Exception in thread "main" java.lang.NullPointerException
 > at __ZN5Hello2goEv 
 > (E:2004円-development2005円-extraextra\src\Hello.java:23)
 > at __ZN5Hello4mainEP6JArrayIPN4java4lang6StringEE 
 > (E:2004円-development2005円-extraextra\src\Hello.java:13)
 > at _main (C:\DOKUME~1\GRUNEW~1\LOKALE~1\Temp\ccmocaaa.i:11)
But this is *tremendously* useful information! It tells us exactly
where the NullPointerException happens.
There are only two things in there that might raise a
NullPointerException: Level.SEVERE, and the call to tLog.log.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /