Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the numbers in stack trace mean?

How can I use the numbers in the stacktrace? What do these mean? In eclipse I get often exceptions, for example a NullPointerException:

java.lang.NullPointerException
  at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
  at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
  at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.handleVmEvent(+186) 
like image 985
hsmit Avatar asked Jan 17 '10 12:01

hsmit


1 Answers

Those are the offsets of the instruction that caused the exception from the beginning of the method.

java.lang.NullPointerException
  at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)

The instruction at offset 68 in the method com.sun.midp.lcdui.DefaultEventHandler.commandEvent is causing the actual exception by accessing a null reference.

  at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)

The instruction at offset 47 in the method com.sun.midp.lcdui.AutomatedEventHandler.commandEvent is a call instruction that runs the com.sun.midp.lcdui.DefaultEventHandler.commandEvent method.

  at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.handleVmEvent(+186)

The instruction at offset 186 in the method com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.handleVmEvent is a call instruction that runs the com.sun.midp.lcdui.AutomatedEventHandler.commandEvent method.

like image 111
mmx Avatar answered Sep 30 '22 19:09

mmx