R
Rhino
Can anyone tell me how to decipher a J2ME stacktrace?
I am working on my first couple of J2ME applications. I'm using the Sun
Wireless Toolkit 2.2. When I crash my MIDlet, I get something like this:
startApp threw an Exception
java.lang.NullPointerException
java.lang.NullPointerException
at javax.microedition.lcdui.ChoiceGroup.<init>(+92)
at javax.microedition.lcdui.List.<init>(+61)
at MemberManager.constructMemberList(+18)
at MemberManager.startApp(+16)
at javax.microedition.midlet.MIDletProxy.startApp(+7)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+116)
Can someone tell me what the signed numbers in brackets mean and how I can
relate them to line numbers in my source code?
For instance, in this example, the NullPointerException happened in
MemberManager.constructMemberList and MemberManager.startApp but I can't
figure out what the +18 and +16 mean. I'm used to those being unsigned
integers that coincide with the line number in the source code where the
error took place. But lines 16 and 18 of MemberManager are NOT in the
constructMemberList and startApp methods, they are javadoc comments early in
the program.
How do I find which line of source code threw the exception?
I'd be very grateful for some help with this basic question; it would
certainly save me some time ;-)
--
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare
I am working on my first couple of J2ME applications. I'm using the Sun
Wireless Toolkit 2.2. When I crash my MIDlet, I get something like this:
startApp threw an Exception
java.lang.NullPointerException
java.lang.NullPointerException
at javax.microedition.lcdui.ChoiceGroup.<init>(+92)
at javax.microedition.lcdui.List.<init>(+61)
at MemberManager.constructMemberList(+18)
at MemberManager.startApp(+16)
at javax.microedition.midlet.MIDletProxy.startApp(+7)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+116)
Can someone tell me what the signed numbers in brackets mean and how I can
relate them to line numbers in my source code?
For instance, in this example, the NullPointerException happened in
MemberManager.constructMemberList and MemberManager.startApp but I can't
figure out what the +18 and +16 mean. I'm used to those being unsigned
integers that coincide with the line number in the source code where the
error took place. But lines 16 and 18 of MemberManager are NOT in the
constructMemberList and startApp methods, they are javadoc comments early in
the program.
How do I find which line of source code threw the exception?
I'd be very grateful for some help with this basic question; it would
certainly save me some time ;-)
--
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare