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 253506 - Regression in nightly build 201507150001
Summary: Regression in nightly build 201507150001
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Logger (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-16 06:41 UTC by terje7601
Modified: 2015-09-14 07:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (254.73 KB, application/octet-stream)
2015-07-16 06:41 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2015-07-16 06:41:49 UTC
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)
Comment 1 terje7601 2015-07-16 06:46:22 UTC
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)
	[...]
Comment 2 Antonin Nebuzelsky 2015-09-11 15:14:26 UTC
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)
...
Comment 3 Martin Entlicher 2015-09-11 16:49:47 UTC
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.
Comment 4 Martin Entlicher 2015-09-11 16:54:56 UTC
Is the exception reproducible, does it still happen to you?
Comment 5 terje7601 2015-09-14 07:32:20 UTC
(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.