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: NetBeans IDE 6.0 Beta 1 (Build 200709141330) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05 OS: Windows Vista, 6.0, x86 User Comments: I invoked extract interface, checked several things to extract and chose preview. Then I clicked various nodes in the preview which resulted in IAE and AIOOBE.
Created attachment 49083 [details] stacktrace
It looks like a Swing bug...
Cannot reproduce.
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 1.6.0-b105 OS: Windows XP, 5.1, x86 User Comments: Dear Mr / Ms, I was refactoring a simple class and used the preview option. When clicking on a item (in the refactoring window (output)) to see what would change this exception occured. Kind regards, Henri de Ruiter
Created attachment 54409 [details] stacktrace
Build: NetBeans IDE 6.0 (Build 200711261600) VM: Java HotSpot(TM) Client VM, 1.5.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: Refactor, rename on a static field (the field was hidding another field).
Created attachment 54936 [details] stacktrace
Build: NetBeans IDE 6.1 Beta (Build 200803050202) VM: Java HotSpot(TM) Client VM, 1.6.0-b105 OS: Windows XP, 5.1, x86 User Comments: encapsulate field
Created attachment 58748 [details] stacktrace
This issue has already 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=1347
A one year old issue with over 20 duplicates yet it's a P4 with no evaluation? Please reevaluate issue, including potential causes and justification for priority. FWIW, I just reproduced this in NetBeans 6.5, Sep 10 nightly build so it's still current.
Build: NetBeans IDE Dev (Build 20080908074124) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28 OS: Windows XP, 5.1, x86 User Comments: AIOOBE when collapsing node in preview Stacktrace: java.lang.ArrayIndexOutOfBoundsException: 8 >= 7 at java.util.Vector.removeElementAt(Vector.java:511) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.collapse(VariableHeightLayoutCache.java:1583) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.collapse(VariableHeightLayoutCache.java:1277) at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:170) at javax.swing.plaf.basic.BasicTreeUI$Handler.treeCollapsed(BasicTreeUI.java:3731) at javax.swing.JTree.fireTreeCollapsed(JTree.java:2690)
Created attachment 69629 [details] stacktrace
IMO it is caused by expanding/collapsing JTree nodes outside EDT in RefactoringPanel.
*** Issue 149537 has been marked as a duplicate of this issue. ***
Build: NetBeans IDE Dev (Build 081014) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Linux, 2.6.24-21-generic, i386 User Comments: Refactoring preview dialog appeared with strange window bounds and corrupted tree view on the left. Stacktrace: java.lang.ArrayIndexOutOfBoundsException: 14 >= 10 at java.util.Vector.removeElementAt(Vector.java:511) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.collapse(VariableHeightLayoutCache.java:1583) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.collapse(VariableHeightLayoutCache.java:1277) at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:170) at javax.swing.plaf.basic.BasicTreeUI$Handler.treeCollapsed(BasicTreeUI.java:3731) at javax.swing.JTree.fireTreeCollapsed(JTree.java:2690)
Created attachment 72310 [details] stacktrace
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.util.EmptyStackException at java.util.Stack.peek(Stack.java:85) at java.util.Stack.pop(Stack.java:67) at javax.swing.JTree.setExpandedState(JTree.java:3357) at javax.swing.JTree.expandPath(JTree.java:2166) at javax.swing.JTree.expandRow(JTree.java:2181) at org.netbeans.modules.refactoring.spi.impl.CheckNodeListener.selectNextPrev(CheckNodeListener.java:297)
Created attachment 74546 [details] stacktrace
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02 OS: Linux, 2.6.24-22-generic, i386 User Comments: Stacktrace: java.lang.ArrayIndexOutOfBoundsException: 9 >= 9 at java.util.Vector.removeElementAt(Vector.java:511) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.collapse(VariableHeightLayoutCache.java:1583) at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.collapse(VariableHeightLayoutCache.java:1277) at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:170) at javax.swing.plaf.basic.BasicTreeUI$Handler.treeCollapsed(BasicTreeUI.java:3731) at javax.swing.JTree.fireTreeCollapsed(JTree.java:2690)
Created attachment 77313 [details] stacktrace
fixed as http://hg.netbeans.org/jet-main/rev/01bf375b45a2
Integrated into 'main-golden', will be available in build *200903311400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/01bf375b45a2 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #116030: run expand/collaps inside EDT