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.
Created attachment 154666 [details] IDE log I had just done "Run" on a Node.js/HTML5 application (but I'm not sure if that's the cause), when NetBeans gave me the dialog to review and report an exception. The dialog only contained "java.lang.ArrayIndexOutOfBoundsException" & no matter what I did, the dialog kept coming back. Product Version: NetBeans IDE Dev (Build 201507150001) Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Note: I also upgraded to Java 8u51 yesterday, so maybe it's actually a regression in Java (just guessing). The root cause (I think) is in the IDE log at line 1342: java.lang.ArrayIndexOutOfBoundsException: 3 > 2 at java.util.Vector.insertElementAt(Vector.java:598) at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.updateHtmlViews(BasicTabbedPaneUI.java:3593) at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.componentAdded(BasicTabbedPaneUI.java:3718) [...]
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.uihandler.Installer$SubmitInteractive java.lang.ArrayIndexOutOfBoundsException Caused: java.lang.reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait(EventQueue.java:1319) at java.awt.EventQueue.invokeAndWait(EventQueue.java:1294) at org.netbeans.modules.uihandler.Installer$SubmitInteractive.createDialog(Installer.java:2362) Caused: java.lang.IllegalStateException at org.netbeans.modules.uihandler.Installer$SubmitInteractive.createDialog(Installer.java:2428) ...
I do not think this is a regression, we have already issue #252635 with the report of an ArrayIndexOutOfBoundsException without a corresponding stack trace. It is likely associated with the ArrayIndexOutOfBoundsException: 3 > 2 at java.util.Vector.insertElementAt(Vector.java:598) at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.updateHtmlViews(BasicTabbedPaneUI.java:3593) at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.componentAdded(BasicTabbedPaneUI.java:3718) and ArrayIndexOutOfBoundsException: 3 >= 2 at java.util.Vector.elementAt(Vector.java:474) at javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(BasicTabbedPaneUI.java:1706) at javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabHeight(BasicTabbedPaneUI.java:1717) at javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabHeight(BasicTabbedPaneUI.java:1742) This can occur if the UI objects are accessed outside of AWT event queue. But it's hard to find out if this is really the case and if so, where it is.
Is the exception reproducible, does it still happen to you?
(In reply to Martin Entlicher from comment #4) > Is the exception reproducible, does it still happen to you? It's not reproducible, and I haven't had this exception since I reported it.