Logging broken ?
Andreas Grunewald
gruni@users.sourceforge.net
Wed Apr 6 10:49:00 GMT 2005
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-development\2005-extraextra\src\Hello.java:23)
at __ZN5Hello4mainEP6JArrayIPN4java4lang6StringEE
(E:\2004-development\2005-extraextra\src\Hello.java:13)
at _main (C:\DOKUME~1\GRUNEW~1\LOKALE~1\Temp\ccmocaaa.i:11)
and as mentioned before the Code in Hello.java is
21: System.out.println("Now starting to LOG");
22: System.out.println("This is tLog " + tLog);
23: tLog.log(Level.SEVERE,"Simple log test");
I ran GDB (5.2.1 from Dev-CPP)but didn't get any new results, I think I
have to learn how to use it.
Andreas
PS The debug.log file is created but not written.
Ranjit Mathew wrote:
> Andreas Grunewald wrote:
>
>> > Well, it's hard for us without Windows platforms to know what the
>> > cause of your problem might be. However, my guess is that you have
>> > some kind of problem with stack traces.
>>
>>Ok so here is the output of my hello.exe
>>
>>G:\2005-extraextra>hello
>>Now starting to LOG
>>Exception in thread "main" java.lang.NullPointerException
>> at 0x00416a3e (Unknown Source)
>> at 0x00416f32 (Unknown Source)
>
>
> Make sure that you have "addr2line" and "c++filt" from
> MinGW binutils in your PATH when you run "hello.exe",
> so that you can get better stacktraces than this.
>
> Ranjit.
>
More information about the Java
mailing list