Я создаю приложение j2me, и когда я пытаюсь отладить его в netbeans, я получаю ошибку, когда достигаю точки в моем коде.
Код выглядит следующим образом
class MyClass{
public MyClass()
{
OtherClass oc = new OtherClass();
oc.MyMethod();
}
}
Другой метод заключается в следующем:
public void MyMethod()
{
boolean isValue = true; // I get an exception right here...
if(...) { /*Code not reached*/ } ...
}
Исключение, которое я получаю, выглядит так:
java.lang.InternalError: Location with invalid code index
at com.sun.tools.jdi.ConcreteMethodImpl.codeIndexToLineInfo(ConcreteMethodImpl.java:167)
at com.sun.tools.jdi.LocationImpl.getBaseLineInfo(LocationImpl.java:108)
at com.sun.tools.jdi.LocationImpl.getLineInfo(LocationImpl.java:122)
at com.sun.tools.jdi.LocationImpl.sourcePath(LocationImpl.java:187)
at com.sun.tools.jdi.LocationImpl.sourcePath(LocationImpl.java:182)
at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getSourcePath(CallStackFrameImpl.java:238)
at org.netbeans.modules.debugger.jpda.ui.EditorContextBridge.getRelativePath(EditorContextBridge.java:355)
at org.netbeans.modules.debugger.jpda.ui.CurrentThreadAnnotationListener$AnnotateCallStackTask.run(CurrentThreadAnnotationListener.java:344)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)