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 Dev (Build web-main-1624-on-20141130) VM: Java HotSpot(TM) Client VM, 24.71-b01, Java(TM) SE Runtime Environment, 1.7.0_71-b14 OS: Linux User Comments: vriha: sorry, no idea. I had opened Maven Web and PHP projects and pressed (I think) Ctrl+/ Stacktrace: java.lang.ArrayIndexOutOfBoundsException: 7 at org.netbeans.modules.gsf.testrunner.ui.api.UICommonUtils.getFileObjectsFromNodes(UICommonUtils.java:84) at org.netbeans.modules.selenium2.RunSeleniumTestsAction.enable(RunSeleniumTestsAction.java:82) at org.openide.util.actions.NodeAction$DelegateAction.resultChanged(NodeAction.java:615) at sun.reflect.GeneratedMethodAccessor63.invoke(GeneratedMethodAccessor63.java:0) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606)
Created attachment 150814 [details] stacktrace
Created attachment 151527 [details] stacktrace selecting all in Projects window using Ctrl+A. The window contains several projects (maven web, HTML/JS, PHP with Selenium Test Files node expanded)
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=213820
Created attachment 152193 [details] stacktrace While manipulating MAVEN modules in Projects view
Created attachment 152589 [details] stacktrace Not sure, I think it was on a file change and an auto-upload to remote when the file changed.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=213820
Created attachment 154066 [details] stacktrace Expanded a Maven module project, and all child project nodes (including children of children - using this Git checkout git@github.com:timboudreau/mastfrog-parent.git - run submodule init/update). Selected the last project with all project nodes expanded. Held down shift-up-arrow to select going upward.
Created attachment 154167 [details] stacktrace - multiselection in projects (via shift-click) - select many different types of nodes at once - plain java projects
The bug is pretty obvious: - The method can assign the result array to new FileObject[0] in a loop, and then loop again and try to add an element to it - On the next loop, the method will test if the array is null, but not if it's length is 0, and it will attempt to assign an element of it Solution: Use an ArrayList and toArray() to get the return value.
Created attachment 154608 [details] stacktrace sdf
Created attachment 154877 [details] stacktrace 1. Created project as per test spec http://services.netbeans.org/synergy/client/app/#/case/3905/suite/1928/v/1 2. Collapsed all Projects 3. Main project Expanded 4. Ctrl-A (Cmd A on mac)
Created attachment 155011 [details] stacktrace asd
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=213820
Created attachment 155073 [details] stacktrace In the project left panel I have 2 projects opened. I want to close both so I clicked on the first and then pressing SHIFT clicked on the second to select all. The exception is thrown.
I added a screenshot of the projects panel status when the exception has been thrown. Considering that it is ArrayIndexOutOfBoundsException maybe can be useful to see the number of selected elements and of the collapsed/uncollapsed folds.
Created attachment 155074 [details] The projects panel
Created attachment 155075 [details] A stacktrace related to this issue a bit different from the ones automatically reported.
Created attachment 155103 [details] stacktrace Reproducing steps: 1. Close all opened projects, and Created a JEE Sample project - "Absolute Ordering" 2. Selected Expanded the "absolute-ordering-web-fragments" maven project module 3. Clean-Build project using toolbar button 4. Run "absolute-ordering-web-fragments-war" project 5. (while "absolute-ordering-web-fragments" project node is expanded, and other project trees are collapsed),... clicked on "absolute-ordering-web-fragments" project and Shift+click "fragments3" project which was at the bottom to select all projects exception got thrown
Changeset: e1b49383cc4f Author: Theofanis Oikonomou <theofanis@netbeans.org> Date: 2015-08-18 12:58 Message:
Thank you for the hints and screen-shot. It made it easier to fix this.
Integrated into 'main-silver', will be available in build *201508200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e1b49383cc4f User: Theofanis Oikonomou <theofanis@netbeans.org> Log: Task #249036 - ArrayIndexOutOfBoundsException: 7