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.
exception thrown on debugging (step over), maxosx, jdk 1.4.2 and daily build of 4.2 (20050420) Annotation: Exception occurred in Request Processor java.lang.IndexOutOfBoundsException: Index: 5, Size: 5 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getLocalVariables(LocalsTreeModel.java:259) at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getLocalVariables(LocalsTreeModel.java:226) at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getChildren(LocalsTreeModel.java:75) at org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildren(Models.java:814) at org.netbeans.modules.debugger.jpda.ui.FixedWatchesManager.getChildren(FixedWatchesManager.java:103) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:480) at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilterSI.getChildren(VariablesTreeModelFilterSI.java:137) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:480) at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getChildren(VariablesTreeModelFilter.java:83) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:480) at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildren(Models.java:1942) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.refreshChildren(TreeModelNode.java:390) at org.netbeans.modules.viewmodel.TreeModelNode$4.run(TreeModelNode.java:374) at org.openide.util.Task.run(Task.java:189) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
This is a synchronization problem - consequence of the following pattern: count = model.getChildrenCount (object); ch = model.getChildren ( object, 0, count ); There's missing a method like: model.getChildren (object) The count is usually not used at all. getChildren (object, from, to); needs to be smart to count with that "from" and "to" can be out of scope! This can easily occur in 4.1 as well.
*** Issue 58772 has been marked as a duplicate of this issue. ***
A duplicate of issue #57573. *** This issue has been marked as a duplicate of 57573 ***
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.