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 58153 - exception thrown on debugging
Summary: exception thrown on debugging
Status: CLOSED DUPLICATE of bug 57573
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: THREAD
: 58772 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-21 09:36 UTC by Milos Kleint
Modified: 2010-04-29 09:22 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 Milos Kleint 2005-04-21 09:36:59 UTC
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)
Comment 1 Martin Entlicher 2005-05-16 17:36:07 UTC
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.

Comment 2 Martin Entlicher 2005-05-16 17:55:09 UTC
*** Issue 58772 has been marked as a duplicate of this issue. ***
Comment 3 Martin Entlicher 2005-10-06 17:12:26 UTC
A duplicate of issue #57573.

*** This issue has been marked as a duplicate of 57573 ***
Comment 4 Quality Engineering 2010-04-29 09:22:16 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.