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.
Many users have complained about the ArrayIndexOutOfBoundsException. It occurs randomly, so there doesn't seem to be a reproducible case. Can this exception be caught and suppressed? *********** Exception occurred ************ Tue Dec 03 13:36:38 PST 2002: java.lang.ArrayIndexOutOfBoundsException: 21 >= 0 java.lang.ArrayIndexOutOfBoundsException: 21 >= 0 at java.util.Vector.elementAt(Vector.java:427) at javax.swing.tree.VariableHeightLayoutCache.getRowContainingYLocation( VariableHeightLayoutCache.java:926) at javax.swing.tree.VariableHeightLayoutCache.getPathClosestTo(VariableH eightLayoutCache.java:313) at javax.swing.plaf.basic.BasicTreeUI.getClosestPathForLocation(BasicTre eUI.java:464) at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1088) at javax.swing.plaf.metal.MetalTreeUI.paint(MetalTreeUI.java:143) at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142) at javax.swing.JComponent.paintComponent(JComponent.java:537) at javax.swing.JComponent.paint(JComponent.java:804) at javax.swing.JComponent.paintChildren(JComponent.java:643) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4742) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688) at javax.swing.JComponent._paintImmediately(JComponent.java:4632) at javax.swing.JComponent.paintImmediately(JComponent.java:4464) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System EventQueueUtilities.java:117) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:443) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:191) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
JDK? Steps to reproduce? Stack trace is from JDK, none line from NetBeans/S1S. In my opinion we cannot do anything. Peter ?
Well, I guess we can't anyway it is about JTree, so putting it first to explorer, if there are some comments. Maybe we are hacking it too much? But I recommend to move it to jdk team.
This is a random exception. JDK 1.4.1, Solaris 9.
Such a stack trace could result from our manipulating some part of the tree outside the event thread, I guess. Trung might know how to catch such things. Anyway it is true that Swing code is terrible at reporting the actual case of such runtime exceptions. I don't think such an exception should be caught and ignored. We should either figure out what we are doing wrong, or give up and pass it on the to Swing team under the assumption that there is no bug in NB code.
I don't plan investigate in 3.5.
Using large model (aren't we doing that now?) will probably get rid of this exception since items in the tree will be fixed height, and no layout info should be cached and used.
Assigned to new owner.
Does it occur lately? I have never seen it myself and we're several releases ahead already...
*** This issue has been marked as a duplicate of 48993 ***
ver as dup