# Getting Error io.gatling.app.Gatling$ - Run crashed

**URL:** <https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197>\
**Category:** Gatling (Open-Source)\
**Created:** [August 11, 2023, 5:31am UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197 "2023-08-11T05:31:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshit](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@harshit](https://community.gatling.io/u/harshit)\
**Post date:** [August 11, 2023, 5:31am UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/1 "2023-08-11T05:31:09Z")

</div>

While trying to run gatling test using mvn gatling:test I am getting this error  
Gatling Version: 3.6.1  
Java version : 11  
Scala version: 2.13.9  
19:48:10.831 [main] ERROR io.gatling.app.Gatling$ - Run crashed  
java.lang.reflect.InvocationTargetException  
Caused by: java.lang.ClassNotFoundException: io.netty.internal.tcnative.CertificateCompressionAlgo  
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)  
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)  
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

---

<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 11, 2023, 7:23am UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/2 "2023-08-11T07:23:45Z")

</div>

You have an issue with the `io.netty:netty-tcnative-classes` artifact.

- either its missing from your dependencies because you’ve messed up with the dependency management, to be checked with `mvn dependency:tree`
- or the entry in your local maven cache is corrupted, to be checked if you can unzip it, in this case delete it so maven downloads it again

---

<div class="post-metadata">

**Author:** ![harshit](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@harshit](https://community.gatling.io/u/harshit)\
**Post date:** [August 11, 2023, 7:58am UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/3 "2023-08-11T07:58:43Z")

</div>

In the dependency tree I can see  
± io.netty:netty-tcnative-classes:jar:2.0.55.Final:compile  
Still getting the error

---

<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 11, 2023, 8:52am UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/4 "2023-08-11T08:52:28Z")

</div>

What about the second part of my message?

---

<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 11, 2023, 8:56am UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/5 "2023-08-11T08:56:00Z")

</div>

Once you’ve solved this, make sure the netty and netty-tcnative modules are compatible, in particular if you’re messing up with the versions with some `dependencyManagement` or importing other librairies that depend on netty too (hint: you shouldn’t).

---

<div class="post-metadata">

**Author:** ![harshit](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@harshit](https://community.gatling.io/u/harshit)\
**Post date:** [August 11, 2023, 10:39am UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/6 "2023-08-11T10:39:29Z")

</div>

I tried invalidating cache in intellij and delete .m2 folder to remove local cached dependency.  
But nothing seems to work  
I have  
\<version.lib.netty\>4.1.72.Final\</version.lib.netty\>  
and  
netty-tcnative-classes  
2.0.60.Final

From what I checked they both are compatible.

After few changes I have started getting this error  
java.lang.NoSuchMethodError: ‘boolean io.netty.internal.tcnative.SSLContext.setCurvesList(long, java.lang.String)’

Can you please help

---

<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 11, 2023, 12:16pm UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/7 "2023-08-11T12:16:37Z")

</div>

Why don’t you let Gatling handle the netty and netty-tcnative versions? You’re looking for trouble. You have zero guarantee that Gatling 3.6.1 is going to work with these versions.

- dependencies versions in Gatling 3.6.1: [https://github.com/gatling/gatling/blob/v3.6.1/project/Dependencies.scala](https://github.com/gatling/gatling/blob/v3.6.1/project/Dependencies.scala)
- dependencies versions in Gatling 3.9.5: [https://github.com/gatling/gatling/blob/v3.9.5/project/Dependencies.scala](https://github.com/gatling/gatling/blob/v3.9.5/project/Dependencies.scala)

Any other combination is not supported and for you to figure out.

If you want to use up-to-date netty versions, you should upgrade Gatling first.

---

<div class="post-metadata">

**Author:** ![harshit](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@harshit](https://community.gatling.io/u/harshit)\
**Post date:** [August 11, 2023, 1:17pm UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/8 "2023-08-11T13:17:56Z")

</div>

FYI @slandelle  
I tried using gatling 3.9.5 but it had its own issues and I ended up getting  
java.lang.RuntimeException: Can’t find the jar matching scala-library-.\*.jar$  
So I read somewhere to downgrade the version so I moved to 3.6.1

Why don’t you let Gatling handle the netty and netty-tcnative versions?  
Because I am working on a project where we already had these dependency in use from before, So I can not remove it.

---

<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 11, 2023, 1:26pm UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/9 "2023-08-11T13:26:58Z")

</div>

Sorry, but I’m afraid that there’s no way to help you unless you go with a paying consulting contract where we can investigate your setup indepth.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [September 10, 2023, 1:27pm UTC](https://community.gatling.io/t/getting-error-io-gatling-app-gatling-run-crashed/8197/10 "2023-09-10T13:27:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
