ArrayOutOfBoundsException...anyone seen this before?

90 views
Skip to first unread message

Jeff

unread,
Jan 21, 2018, 5:23:09 PM1/21/18
to testng...@googlegroups.com
I'm running the 6.14-SNAPSHOT and am encountering this on occasion but I can't reproduce it consistently.  I don't see any open issues that might be related.  Could something I'm doing cause this?

org.testng.internal.PoolService.submitTasksAndWait(PoolService.java:53)
org.testng.internal.Invoker.invokeTestMethods(Invoker.java:969)
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:748)


Thanks,

Jeff

Todd Bradley

unread,
Jan 21, 2018, 5:47:35 PM1/21/18
to testng...@googlegroups.com
Do you use timeouts on your tests? We were getting those errors, too, due to this bug:

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

Krishnan Mahadevan

unread,
Jan 21, 2018, 10:53:05 PM1/21/18
to testng...@googlegroups.com

Jeff,

 

I vaguely remember this being the case when I was fixing https://github.com/cbeust/testng/issues/1636

 

Can you please cleanup your ~/.m2 folder of 6.14-SNAPSHOT, try again and see if that problem persists?

 

This issue is mostly due to a negative thread count value (default thread count value is -1).

 

My PR https://github.com/cbeust/testng/pull/1655 fixed this anomaly.

 

If its still happening, it would be great if you could please help share your suite xml file.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

 

From: <testng...@googlegroups.com> on behalf of Todd Bradley <to...@toddbradley.com>
Reply-To: <testng...@googlegroups.com>
Date: Monday, January 22, 2018 at 4:17 AM
To: <testng...@googlegroups.com>
Subject: Re: [testng-users] ArrayOutOfBoundsException...anyone seen this before?

 

Do you use timeouts on your tests? We were getting those errors, too, due to this bug:

On Sun, Jan 21, 2018 at 3:22 PM, Jeff <preda...@gmail.com> wrote:

I'm running the 6.14-SNAPSHOT and am encountering this on occasion but I can't reproduce it consistently.  I don't see any open issues that might be related.  Could something I'm doing cause this?

 

org.testng.TestNGException: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: -1

org.testng.internal.PoolService.submitTasksAndWait(PoolService.java:53)

org.testng.internal.Invoker.invokeTestMethods(Invoker.java:969)

org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)

org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

java.lang.Thread.run(Thread.java:748)

Caused by: java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: -1

Caused by: java.lang.ArrayIndexOutOfBoundsException: -1

 

 

Thanks,

 

Jeff

--

You received this message because you are subscribed to the Google Groups "testng-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.


To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

 

--

You received this message because you are subscribed to the Google Groups "testng-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages