getting error while running gatling error

63 views
Skip to first unread message

Harshit Pandey

unread,
Aug 11, 2023, 4:01:32 PM8/11/23
to Netty discussions
Hi,
I have
<version.lib.netty>4.1.72.Final</version.lib.netty>
and
netty-tcnative-classes version as 2.0.60.Final


I am getting this error while running gatling test using mvn gatling:test


16:38:37.725 [main] ERROR io.gatling.app.Gatling$ - Run crashed
java.lang.NoSuchMethodError: 'boolean io.netty.internal.tcnative.SSLContext.setCurvesList(long, java.lang.String[])'
        at io.netty.handler.ssl.ReferenceCountedOpenSslContext.<init>(ReferenceCountedOpenSslContext.java:426) ~[netty-handler-4.1.94.Final.jar:4.1.94.Final]
        at io.netty.handler.ssl.ReferenceCountedOpenSslClientContext.<init>(ReferenceCountedOpenSslClientContext.java:67) ~[netty-handler-4.1.94.Final.jar:4.1.94.Final]
        at io.netty.handler.ssl.SslContext.newClientContextInternal(SslContext.java:839) ~[netty-handler-4.1.94.Final.jar:4.1.94.Final]
        at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:615) ~[netty-handler-4.1.94.Final.jar:4.1.94.Final]
        at io.gatling.http.util.SslContextsFactory.newSslContexts(SslContexts.scala:119) ~[gatling-http-3.6.1.jar:3.6.1]
        at io.gatling.http.engine.HttpClientFactory.newClientConfig(HttpClientFactory.scala:42) ~[gatling-http-3.6.1.jar:3.6.1]
        at io.gatling.http.engine.HttpClientFactory.newClient(HttpClientFactory.scala:67) ~[gatling-http-3.6.1.jar:3.6.1]
        at io.gatling.http.engine.HttpEngine$.apply(HttpEngine.scala:50) ~[gatling-http-3.6.1.jar:3.6.1]
        at io.gatling.http.protocol.HttpProtocol$$anon$1.newComponents(HttpProtocol.scala:52) ~[gatling-http-3.6.1.jar:3.6.1]
        at io.gatling.core.protocol.ProtocolComponentsRegistry.$anonfun$components$1(Protocol.scala:68) ~[gatling-core-3.6.1.jar:3.6.1]
        at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:454) ~[scala-library-2.13.9.jar:?]
        at io.gatling.core.protocol.ProtocolComponentsRegistry.componentsFactory$1(Protocol.scala:68) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.protocol.ProtocolComponentsRegistry.comps$1(Protocol.scala:71) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.protocol.ProtocolComponentsRegistry.$anonfun$components$4(Protocol.scala:73) ~[gatling-core-3.6.1.jar:3.6.1]
        at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:454) ~[scala-library-2.13.9.jar:?]
        at io.gatling.core.protocol.ProtocolComponentsRegistry.components(Protocol.scala:73) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.http.action.HttpActionBuilder.lookUpHttpComponents(HttpActionBuilder.scala:26) ~[gatling-http-3.6.1.jar:3.6.1]
        at io.gatling.http.action.HttpRequestActionBuilder.build(HttpRequestActionBuilder.scala:33) ~[gatling-http-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.BuildAction.$anonfun$build$1(BuildAction.scala:28) ~[gatling-core-3.6.1.jar:3.6.1]
        at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:183) ~[scala-library-2.13.9.jar:?]
        at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:179) ~[scala-library-2.13.9.jar:?]
        at scala.collection.immutable.List.foldLeft(List.scala:79) ~[scala-library-2.13.9.jar:?]
        at io.gatling.core.structure.BuildAction.build(BuildAction.scala:27) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.BuildAction.build$(BuildAction.scala:26) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.ChainBuilder.build(StructureBuilder.scala:39) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.action.builder.TryMaxBuilder.build(TryMaxBuilder.scala:28) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.BuildAction.$anonfun$build$1(BuildAction.scala:28) ~[gatling-core-3.6.1.jar:3.6.1]
        at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:183) ~[scala-library-2.13.9.jar:?]
        at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:179) ~[scala-library-2.13.9.jar:?]
        at scala.collection.immutable.List.foldLeft(List.scala:79) ~[scala-library-2.13.9.jar:?]
        at io.gatling.core.structure.BuildAction.build(BuildAction.scala:27) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.BuildAction.build$(BuildAction.scala:26) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.ChainBuilder.build(StructureBuilder.scala:39) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.action.builder.LoopBuilder.build(LoopBuilder.scala:56) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.BuildAction.$anonfun$build$1(BuildAction.scala:28) ~[gatling-core-3.6.1.jar:3.6.1]
        at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:183) ~[scala-library-2.13.9.jar:?]
        at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:179) ~[scala-library-2.13.9.jar:?]
        at scala.collection.immutable.List.foldLeft(List.scala:79) ~[scala-library-2.13.9.jar:?]
        at io.gatling.core.structure.BuildAction.build(BuildAction.scala:27) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.BuildAction.build$(BuildAction.scala:26) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.ScenarioBuilder.build(StructureBuilder.scala:51) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.structure.PopulationBuilder.build(PopulationBuilder.scala:100) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.scenario.SimulationParams.buildScenario(Simulation.scala:170) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.core.scenario.SimulationParams.$anonfun$scenarios$1(Simulation.scala:174) ~[gatling-core-3.6.1.jar:3.6.1]
        at scala.collection.immutable.List.map(List.scala:246) ~[scala-library-2.13.9.jar:?]
        at io.gatling.core.scenario.SimulationParams.scenarios(Simulation.scala:174) ~[gatling-core-3.6.1.jar:3.6.1]
        at io.gatling.app.Runner.run0(Runner.scala:79) ~[gatling-app-3.6.1.jar:3.6.1]
        at io.gatling.app.Runner.run(Runner.scala:49) ~[gatling-app-3.6.1.jar:3.6.1]
        at io.gatling.app.Gatling$.start(Gatling.scala:83) [gatling-app-3.6.1.jar:3.6.1]
        at io.gatling.app.Gatling$.fromArgs(Gatling.scala:45) [gatling-app-3.6.1.jar:3.6.1]
        at io.gatling.app.Gatling$.main(Gatling.scala:37) [gatling-app-3.6.1.jar:3.6.1]
        at io.gatling.app.Gatling.main(Gatling.scala) [gatling-app-3.6.1.jar:3.6.1]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
        at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:53) [gatling-maven-plugin-3.1.2.jar:?]
        at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:34) [gatling-maven-plugin-3.1.2.jar:?]

Can someone please help
Reply all
Reply to author
Forward
0 new messages