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 # : 20050329 ] [ JDK VERSION : 1.5.0_02 ] IndexOutOfBoundsException during debugging. Annotation: Exception occurred in Request Processor java.lang.IndexOutOfBoundsException: Index: 4, Size: 4 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getLocalVariables(LocalsTreeModel.java:247) at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getLocalVariables(LocalsTreeModel.java:217) at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getChildren(LocalsTreeModel.java:73) at org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildren(Models.java:826) at org.netbeans.modules.debugger.jpda.ui.FixedWatchesManager.getChildren(FixedWatchesManager.java:103) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:482) at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilterSI.getChildren(VariablesTreeModelFilterSI.java:137) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:482) at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getChildren(VariablesTreeModelFilter.java:83) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:482) at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildren(Models.java:2032) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.refreshChildren(TreeModelNode.java:359) at org.netbeans.modules.viewmodel.TreeModelNode$4.run(TreeModelNode.java:343) at org.openide.util.Task.run(Task.java:189)
Created attachment 21439 [details] IDE log
Ok, we will look at it.
*** Issue 61883 has been marked as a duplicate of this issue. ***
Copying evaluation from issue #59212: getChildren() must not rely that "from" and "to" arguments are correct! This is true for *all* models. Things can change in between. (between getChildrenCount() and getChildren()). The impl. must be smart...
*** Issue 59212 has been marked as a duplicate of this issue. ***
*** Issue 63109 has been marked as a duplicate of this issue. ***
*** Issue 65896 has been marked as a duplicate of this issue. ***
Starting to work on this... we need to fix this into 5.0, there're too many duplicates...
I'll have to check the bounds in all getChildren() implementation. Then we can return something like Integer.MAX_VALUE in getChildrenCount(), since that method is completely useless now. - To improve the performace (issue #59058).
*** Issue 58153 has been marked as a duplicate of this issue. ***
Fixed in various models in trunk: /cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/AbstractVariable.java,v <-- AbstractVariable.java new revision: 1.35; previous revision: 1.34 /cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/ClassesTreeModel.java,v <-- ClassesTreeModel.java new revision: 1.11; previous revision: 1.10 /cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/LocalsTreeModel.java,v <-- LocalsTreeModel.java new revision: 1.33; previous revision: 1.32 /cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/WatchesModel.java,v <-- WatchesModel.java new revision: 1.22; previous revision: 1.21 /cvs/debuggercore/src/org/netbeans/modules/debugger/ui/models/BreakpointsTreeModel.java,v <-- BreakpointsTreeModel.java new revision: 1.8; previous revision: 1.7 /cvs/debuggercore/src/org/netbeans/modules/debugger/ui/models/SessionsTreeModel.java,v <-- SessionsTreeModel.java new revision: 1.5; previous revision: 1.4 /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/SourcesModel.java,v <-- SourcesModel.java new revision: 1.15; previous revision: 1.14
*** Issue 66177 has been marked as a duplicate of this issue. ***
*** Issue 66307 has been marked as a duplicate of this issue. ***
*** Issue 67592 has been marked as a duplicate of this issue. ***
*** Issue 68418 has been marked as a duplicate of this issue. ***
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.