This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232556 - java.lang.InternalError: Location with invalid code index
Summary: java.lang.InternalError: Location with invalid code index
Status: RESOLVED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.4
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-11 10:30 UTC by markiewb
Modified: 2013-07-30 11:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-07-11 10:30:42 UTC
I found this exception in the notification view. Sorry, I do not know how to reproduce. I guess I used some expressions in the Evaluator (as you can see in the stacktrace).

java.lang.InternalError: Location with invalid code index
	at com.sun.tools.jdi.ConcreteMethodImpl.codeIndexToLineInfo(ConcreteMethodImpl.java:182)
	at com.sun.tools.jdi.LocationImpl.getBaseLineInfo(LocationImpl.java:126)
	at com.sun.tools.jdi.LocationImpl.getLineInfo(LocationImpl.java:140)
	at com.sun.tools.jdi.LocationImpl.sourcePath(LocationImpl.java:205)
	at com.sun.tools.jdi.LocationImpl.sourcePath(LocationImpl.java:200)
	at org.netbeans.modules.debugger.jpda.jdi.LocationWrapper.sourcePath(LocationWrapper.java:672)
	at org.netbeans.modules.debugger.jpda.SourcePath.getURL(SourcePath.java:167)
	at org.netbeans.modules.debugger.jpda.JavaEvaluator.evaluateIn(JavaEvaluator.java:124)
	at org.netbeans.modules.debugger.jpda.JavaEvaluator.evaluate(JavaEvaluator.java:92)
	at org.netbeans.modules.debugger.jpda.expr.EvaluatorExpression$AssociatedExpression.evaluate(EvaluatorExpression.java:90)
	at org.netbeans.modules.debugger.jpda.expr.EvaluatorExpression.evaluate(EvaluatorExpression.java:73)
	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.evaluateGeneric(JPDADebuggerImpl.java:941)
	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.evaluate(JPDADebuggerImpl.java:359)
	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.evaluate(JPDADebuggerImpl.java:335)
	at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.evaluate(AbstractObjectVariable.java:684)
	at sun.reflect.GeneratedMethodAccessor341.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.netbeans.modules.debugger.jpda.ui.models.VariablesFormatterFilter.getValueAt(VariablesFormatterFilter.java:495)
	at org.netbeans.modules.debugger.jpda.ui.models.VariablesFormatterFilter.getValueAt(VariablesFormatterFilter.java:465)
	at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getValueAt(VariablesTreeModelFilter.java:552)
	at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1447)
	at org.netbeans.modules.debugger.jpda.ui.models.BoldVariablesTableModelFilter.getValueAt(BoldVariablesTableModelFilter.java:97)
	at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1447)
	at org.netbeans.modules.debugger.jpda.models.PendingActionsFilter.getValueAt(PendingActionsFilter.java:130)
	at org.netbeans.spi.viewmodel.Models$CompoundTableModel.getValueAt(Models.java:1447)
	at org.netbeans.spi.viewmodel.Models$CompoundModel.getValueAt(Models.java:4571)
	at org.netbeans.modules.viewmodel.TreeModelNode$MyProperty.run(TreeModelNode.java:1881)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)


----
Product Version: NetBeans IDE Dev (Build 201307072319)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows XP version 5.1 running on x86; Cp1252; de_DE (nb)
Comment 1 Martin Entlicher 2013-07-30 11:31:00 UTC
StackFrame.location() probably returned a wrong location.
But without steps to reproduce we can not do much about this.