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 253117 - java.lang.ArrayIndexOutOfBoundsException
Summary: java.lang.ArrayIndexOutOfBoundsException
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-23 06:38 UTC by MackSix
Modified: 2015-07-14 16:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
logfile (76.63 KB, text/plain)
2015-06-23 06:38 UTC, MackSix
Details
2nd logfile (129.93 KB, text/plain)
2015-06-23 07:00 UTC, MackSix
Details
Screenshot (314.37 KB, image/png)
2015-07-09 03:41 UTC, MackSix
Details
Screenshot #2 (335.17 KB, image/png)
2015-07-14 16:07 UTC, MackSix
Details
Logfile #3 (291.42 KB, application/octet-stream)
2015-07-14 16:07 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-06-23 06:38:53 UTC
Created attachment 154338 [details]
logfile

1. Started Netbeans with some web projects open. 
2. Right clicked on a JSF web project to run it while NetBeans was starting. Did this a few times until the full context menu with "Run" showed.

The project rand and This exception was thrown, but I was not able to report it from the exception reporter dialog. I would click the button to report is and nothing would happen. The exception kept being thrown over and over and it finally stopped. 

I then clicked Tools>>Options and the exception was thrown again each time I did this. I saved the log file a shut down NetBeans.

See attached log file. 


Product Version: NetBeans IDE Dev (Build 201506190001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2015-06-23 07:00:09 UTC
I was able to make it occur again with the same steps. After the exception occurred, if I clicked on the project tree nodes or a sub-menu item, the exception would be thrown again. I was still not able to report with the exception reporter.

See second attached log file.
Comment 2 MackSix 2015-06-23 07:00:49 UTC
Created attachment 154339 [details]
2nd logfile
Comment 3 Petr Hejl 2015-06-24 12:49:57 UTC
I don't see anything JSF specific. There are some issues in UI handler reassigning.
Comment 4 Martin Entlicher 2015-06-24 13:59:19 UTC
I do not see any issues in UI handler.
The UI handler can not proceed with the report of the exception, because EventQueue.invokeAndWait() throws InvocationTargetException and that's because of the:
 java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
	at java.util.Vector.elementAt(Vector.java:474)
	at javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(BasicTabbedPaneUI.java:1706)
        ...
Comment 5 MackSix 2015-07-09 03:40:41 UTC
When I do this, I notice that once the full project context menu appears and I click Run, the blue focus on the project jumps to a completely different project for no reason. Even if the exception is not thrown, this happens. 


I attached a screenshot showing the exception happening again and you will notice that the focus is on the project called "flags" but the project I right clicked to bring up the context menu to run was the project "jsfreg." The focus jumped to "flags" for no reason.


See attached Screenshot.
Comment 6 MackSix 2015-07-09 03:41:17 UTC
Created attachment 154534 [details]
Screenshot
Comment 7 MackSix 2015-07-14 16:06:37 UTC
This looks to be the same exception. I launched a JSP application on Wildfly 9.0 server and the exception started being thrown.

If you see attached Screenshot #2, you will see that the Wildfly server node mysteriously appears as a sub node on one of the projects in the Projects Window.

See attached logfile #3

Product Version: NetBeans IDE Dev (Build 201507040001)
Updates: Updates available
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 8 MackSix 2015-07-14 16:07:09 UTC
Created attachment 154621 [details]
Screenshot #2
Comment 9 MackSix 2015-07-14 16:07:30 UTC
Created attachment 154622 [details]
Logfile #3