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 - IOOBE from VisualizerNode.getChildAt in jemmy.operators.JTreeOperator$3.map
Summary: IOOBE from VisualizerNode.getChildAt in jemmy.operators.JTreeOperator$3.map
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Skrivanek
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: RANDOM, TEST
Depends on:
Blocks:
 
Reported: 2007-07-27 19:40 UTC by Jesse Glick
Modified: 2011-02-17 09:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Entire stack trace to understand changes in JTreeOperator. (5.11 KB, text/plain)
2007-08-01 16:26 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.