# Errors after test is done

**URL:** <https://community.gatling.io/t/errors-after-test-is-done/3193>\
**Category:** Gatling (Open-Source)\
**Created:** [August 15, 2016, 1:49pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193 "2016-08-15T13:49:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik\_Larsson](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Henrik\_Larsson](https://community.gatling.io/u/Henrik_Larsson)\
**Post date:** [August 15, 2016, 1:49pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/1 "2016-08-15T13:49:44Z")

</div>

What is causing gatling to throw the following errors just when all test are done executing?

Simulation finished  
15:46:21.474 [Thread-3][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.478 [Thread-4][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.478 [Thread-5][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.479 [Thread-6][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.479 [Thread-7][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.479 [Thread-8][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.480 [Thread-9][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.480 [Thread-10][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.480 [Thread-11][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
15:46:21.480 [Thread-12][ERROR][JmsReqReplyAction.scala:71] i.g.j.JmsReqReplyAction - java.lang.InterruptedException  
Parsing log file(s)…  
Parsing log file(s) done  
Generating reports…

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [August 17, 2016, 7:54am UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/2 "2016-08-17T07:54:24Z")

</div>

Can you reproduce with Gatling 2.2?

---

<div class="post-metadata">

**Author:** ![Henrik\_Larsson](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Henrik\_Larsson](https://community.gatling.io/u/Henrik_Larsson)\
**Post date:** [August 17, 2016, 2:58pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/3 "2016-08-17T14:58:52Z")

</div>

I now know it is .listenerCount(10) in jms config that is causing this exception. If i change to 2 listners i get two exceptions etc.

I want to upgrade to 2.2 but running into this issue has caused me to stay with 2.1.7 unfortunatly.

[INFO]  
[INFO] — gatling-maven-plugin:2.2.0:execute (default) @ vehicle-utilization-load-tests —  
Picked up JAVA\_TOOL\_OPTIONS: -agentlib:jvmhook  
Error: Could not find or load main class Files\apache-maven-3.3.9.bin.m2.conf

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [August 17, 2016, 3:11pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/4 "2016-08-17T15:11:12Z")

</div>

But there isn’t a JmsReqReplyAction in Gatling 2.2!  
The error message you get comes from [Gatling 2.1](https://github.com/gatling/gatling/blob/v2.1.7/gatling-jms/src/main/scala/io/gatling/jms/JmsReqReplyAction.scala#L84-L85).  
With Gatling 2.2, you should get a [similar message](https://github.com/gatling/gatling/blob/v2.1.7/gatling-jms/src/main/scala/io/gatling/jms/JmsReqReplyAction.scala#L84-L85) and I guess it can just be ignored.

---

<div class="post-metadata">

**Author:** ![Henrik\_Larsson](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Henrik\_Larsson](https://community.gatling.io/u/Henrik_Larsson)\
**Post date:** [August 17, 2016, 3:41pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/5 "2016-08-17T15:41:46Z")

</div>

Ok the problem I have with 2.2 is not related to this message.

When trying to upgrade gatling maven plugin gives the following error.

[INFO]  
[INFO] — gatling-maven-plugin:2.2.0:execute (default) @ vehicle-utilization-load-tests —  
Picked up JAVA\_TOOL\_OPTIONS: -agentlib:jvmhook  
Error: Could not find or load main class Files\apache-maven-3.3.9.bin.m2.conf

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [August 17, 2016, 3:45pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/6 "2016-08-17T15:45:41Z")

</div>

Jenkins?

---

<div class="post-metadata">

**Author:** ![Henrik\_Larsson](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Henrik\_Larsson](https://community.gatling.io/u/Henrik_Larsson)\
**Post date:** [August 17, 2016, 4:01pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/7 "2016-08-17T16:01:33Z")

</div>

Maven

---

<div class="post-metadata">

**Author:** ![Henrik\_Larsson](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Henrik\_Larsson](https://community.gatling.io/u/Henrik_Larsson)\
**Post date:** [August 17, 2016, 4:02pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/8 "2016-08-17T16:02:51Z")

</div>

No not Jenkins

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [August 17, 2016, 4:24pm UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/9 "2016-08-17T16:24:16Z")

</div>

JAVA\_TOOL\_OPTIONS: -agentlib:jvmhook is not something that comes from Gatling nor from maven.  
It looks like it’s something that came from installing IBM QTP: [http://stackoverflow.com/questions/10324186/error-message-in-trying-to-run-java](http://stackoverflow.com/questions/10324186/error-message-in-trying-to-run-java)

---

<div class="post-metadata">

**Author:** ![Henrik\_Larsson](https://avatars.discourse-cdn.com/v4/letter/h/ecd19e/32.png) [@Henrik\_Larsson](https://community.gatling.io/u/Henrik_Larsson)\
**Post date:** [August 18, 2016, 6:45am UTC](https://community.gatling.io/t/errors-after-test-is-done/3193/10 "2016-08-18T06:45:49Z")

</div>

JAVA\_TOOLS\_OPTIONS is not what is causing the problem. If i run with gatling 1.1.7 all is well but when i upgrade to 2.2.1 things stop working.

This is the relevant part of my pom file:

default true load-tests org.apache.maven.plugins maven-antrun-plugin id.post-integration-test post-integration-test run io.gatling gatling-maven-plugin ${gatling-plugin.version} integration-test execute simulations.Load1 org.apache.maven.plugins maven-surefire-plugin true maven-failsafe-plugin integration-test integration-test verify verify net.alchim31.maven scala-maven-plugin ${scala-maven-plugin.version} incremental -deprecation -explaintypes -target:jvm-1.8 add-source compile testCompile ${scala.compat.version} ${scala.version}
