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 247155 - IndexOutOfBoundsException: Index: 0, Size: 0
Summary: IndexOutOfBoundsException: Index: 0, Size: 0
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal with 2 votes (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
: 247135 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-16 08:57 UTC by aquaglia
Modified: 2015-01-03 06:25 UTC (History)
14 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211589


Attachments
stacktrace (887 bytes, text/plain)
2014-09-16 08:57 UTC, aquaglia
Details
stacktrace (887 bytes, text/plain)
2014-09-17 08:33 UTC, aquaglia
Details
stacktrace (887 bytes, text/plain)
2014-09-17 15:03 UTC, aquaglia
Details
stacktrace (1.35 KB, text/plain)
2014-09-17 16:12 UTC, _ gtzabari
Details
stacktrace (887 bytes, text/plain)
2014-09-26 11:41 UTC, satory
Details
stacktrace (887 bytes, text/plain)
2014-10-10 02:54 UTC, Jesse Glick
Details
stacktrace (887 bytes, text/plain)
2014-10-13 18:57 UTC, Jesse Glick
Details
stacktrace (887 bytes, text/plain)
2014-11-08 20:48 UTC, everflux
Details
stacktrace (1.57 KB, text/plain)
2014-11-27 16:58 UTC, _ tboudreau
Details
stacktrace (1.09 KB, text/plain)
2014-11-29 17:22 UTC, everflux
Details
stacktrace (887 bytes, text/plain)
2014-12-05 12:04 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aquaglia 2014-09-16 08:57:21 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 7

User Comments:
DrKunibar: Start focused method test (with maven)

aquaglia: Ruuning junit tests




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:638)
   at java.util.ArrayList.get(ArrayList.java:414)
   at org.netbeans.modules.maven.junit.JUnitOutputListenerProvider.sequenceFail(JUnitOutputListenerProvider.java:487)
   at org.netbeans.modules.maven.execute.AbstractOutputHandler.processFail(AbstractOutputHandler.java:247)
   at org.netbeans.modules.maven.execute.CommandLineOutputHandler.processExecEvent(CommandLineOutputHandler.java:473)
   at org.netbeans.modules.maven.execute.CommandLineOutputHandler.access$300(CommandLineOutputHandler.java:95)
Comment 1 aquaglia 2014-09-16 08:57:23 UTC
Created attachment 149247 [details]
stacktrace
Comment 2 aquaglia 2014-09-17 08:33:11 UTC
Created attachment 149284 [details]
stacktrace

Running JUnit tests
Comment 3 Exceptions Reporter 2014-09-17 08:33:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211589
Comment 4 aquaglia 2014-09-17 15:03:14 UTC
Created attachment 149306 [details]
stacktrace

Editing and running JUnit tests
Comment 5 _ gtzabari 2014-09-17 16:12:14 UTC
Created attachment 149311 [details]
stacktrace

Changed profiling instrumentation type.
Comment 6 Theofanis Oikonomou 2014-09-19 10:32:13 UTC
This is caused while tests are run in parallel. Could you please verify that this is the case? I guess that this exception surfaced when a test failed. Is this always reproducible ? Could you attach a sample project that reproduces the issue? Thank you for reporting
Comment 7 aquaglia 2014-09-19 10:54:37 UTC
Yes, indeed I have a project where tests are executed in parallel:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-surefire-plugin</artifactId>
	<version>2.16</version>
	<configuration>
		<forkCount>3</forkCount>
		<perCoreThreadCount>1</perCoreThreadCount>
		<reuseForks>false</reuseForks>
		<argLine>-Xmx2048m -XX:MaxPermSize=1024m</argLine>
	</configuration>
</plugin>

It happens from time to time.
I will try to find out how to reproduce, thanks.
Comment 8 Tomas Stupka 2014-09-19 13:19:45 UTC
*** Bug 247135 has been marked as a duplicate of this bug. ***
Comment 9 satory 2014-09-26 11:41:05 UTC
Created attachment 149537 [details]
stacktrace

Debugging an Maven Test.

As soon as I pressed stop debugging, the error occured, while the debugger was still on the breakpoint.

I had made code changes while the debugger had stopped as well.
Comment 10 Jesse Glick 2014-10-10 02:54:24 UTC
Created attachment 149824 [details]
stacktrace

Tried to run a Groovy test file.
Comment 11 Jesse Glick 2014-10-13 18:57:59 UTC
Created attachment 149874 [details]
stacktrace

Added a new src/test/resources in a dependency module, then reran a unit test with CoS. Got

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

and then this exception.
Comment 12 everflux 2014-11-08 20:48:43 UTC
Created attachment 150368 [details]
stacktrace

maven based project, "run focused test method"
Comment 13 _ tboudreau 2014-11-27 16:58:06 UTC
Created attachment 150748 [details]
stacktrace

Clicked the stop button in the output window while running test-single on a maven project
Comment 14 Exceptions Reporter 2014-11-28 10:07:08 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211589
Comment 15 everflux 2014-11-29 17:22:13 UTC
Created attachment 150788 [details]
stacktrace

aborted debugger / testcase while standing at breakpoint
Comment 16 everflux 2014-12-05 12:04:20 UTC
Created attachment 150914 [details]
stacktrace

stopped debugging a unit test
Comment 17 Theofanis Oikonomou 2015-01-02 16:05:23 UTC
Changeset: 35ae191f7bb9
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-01-02 17:04
Message:
Comment 18 Quality Engineering 2015-01-03 06:25:50 UTC
Integrated into 'main-silver', will be available in build *201501030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/35ae191f7bb9
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #247155 - IndexOutOfBoundsException: Index: 0, Size: 0