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 111259

Summary: IOOBE from VisualizerNode.getChildAt in jemmy.operators.JTreeOperator$3.map
Product: qa Reporter: Jesse Glick <jglick>
Component: CodeAssignee: Jiri Skrivanek <jskrivanek>
Status: CLOSED FIXED    
Severity: blocker CC: issues
Priority: P2 Keywords: RANDOM, TEST
Version: 6.x   
Hardware: All   
OS: All   
URL: http://deadlock.netbeans.org/hudson/job/trunk/2096/testReport/validation/CNDValidation/testClassView/
Issue Type: DEFECT Exception Reporter:
Attachments: Entire stack trace to understand changes in JTreeOperator.

Description Jesse Glick 2007-07-27 19:40:23 UTC
See URL for an example, excerpted here:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:546)
	at java.util.ArrayList.get(ArrayList.java:321)
	at org.openide.explorer.view.VisualizerNode.getChildAt(VisualizerNode.java:261)
	at javax.swing.tree.DefaultTreeModel.getChild(DefaultTreeModel.java:156)
	at org.netbeans.jemmy.operators.JTreeOperator$3.map(JTreeOperator.java:462)
	at org.netbeans.jemmy.operators.Operator$MapAction.launch(Operator.java:1234)
	at org.netbeans.jemmy.QueueTool$QueueAction.run(QueueTool.java:541)

I have seen this same stack trace a number of times in the past.
Comment 1 Jesse Glick 2007-07-27 19:41:18 UTC
Often breaks CND commit validation.
Comment 2 Jiri Skrivanek 2007-08-01 16:22:34 UTC
Fixed in JTreeOperator#chooseSubnode. We need to catch IndexOutOfBoundsException from getChild and return null (it means
tree has been re-generated and we need another iteration to find a proper tree path).

Url: http://jemmy.netbeans.org/source/browse/jemmy/src/org/netbeans/jemmy/operators/JTreeOperator.java?r1=1.29&r2=1.30
Comment 3 Jiri Skrivanek 2007-08-01 16:26:27 UTC
Created attachment 46015 [details]
Entire stack trace to understand changes in JTreeOperator.