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.
[ BUILD # : 20051201 ] [ JDK VERSION : 1.4.2_xx ] The following exception was thrown during a debug session. There are no known steps to reproduce it: org.netbeans.api.debugger.jpda.InvalidExpressionException at org.netbeans.modules.debugger.jpda.expr.Evaluator.invokeVirtual(Evaluator.java:1618) at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:635) at org.netbeans.modules.debugger.jpda.models.AbstractVariable.invokeMethod(AbstractVariable.java:374) at org.netbeans.modules.debugger.jpda.ui.models.JavaVariablesFilter.getChildrenCount(JavaVariablesFilter.java:220) at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getChildrenCount(VariablesTreeModelFilter.java:207) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildrenCount(Models.java:577) at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildrenCount(Models.java:2200) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:501) at org.netbeans.modules.viewmodel.TreeModelNode$LazyEvaluator.run(TreeModelNode.java:887) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926) Caused by: com.sun.jdi.IncompatibleThreadStateException at com.sun.tools.jdi.ObjectReferenceImpl.invokeMethod(ObjectReferenceImpl.java:381) at org.netbeans.modules.debugger.jpda.expr.Evaluator.invokeVirtual(Evaluator.java:1608) ... 10 more
It's likely that the thread was just started when the method was invoked - there is IncompatibleThreadStateException thrown. There needs to be either some synchronization or this situation must be better handled.
*** Issue 87731 has been marked as a duplicate of this issue. ***
*** Issue 76775 has been marked as a duplicate of this issue. ***
There were some fixes applied to the sychronization of method invocations and thread suspend/resume actions. Thus this should be already fixed in NB 6.0.
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.