Need guidance on nosuchmethoderror

Seeing the below error when i try to run the script in maven


java.lang.NoSuchMethodError: ‘io.gatling.commons.Exclude io.gatling.commons.Exclude$.apply()’
at com.github.phisgr.gatling.grpc.check.StatusExtract$.(StatusExtract.scala:13)
at com.github.phisgr.gatling.grpc.check.GrpcCheckSupport.$init$(GrpcCheckSupport.scala:12)
at com.github.phisgr.gatling.grpc.Predef$.(Predef.scala:6)
at GatlingScripts.simulations.gatlingSimulation.(gatlingSimulation.scala:63)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.lang.Class.newInstance(Class.java:584)
at io.gatling.app.SimulationClass$Scala.params(SimulationClass.scala:31)
at io.gatling.app.Runner.run0(Runner.scala:62)
at io.gatling.app.Runner.run(Runner.scala:49)
at io.gatling.app.Gatling$.start(Gatling.scala:87)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:41)
at GatlingScripts.GatlingRunner$.main(GatlingRunner.scala:16)

often getting below error as well

java.lang.NoClassDefFoundError: io/gatling/core/check/ValidatorCheckBuilder
at com.github.phisgr.gatling.grpc.check.StatusExtract$.(StatusExtract.scala:10)
at com.github.phisgr.gatling.grpc.check.StatusExtract$.(StatusExtract.scala)
at com.github.phisgr.gatling.grpc.check.GrpcCheckSupport.$init$(GrpcCheckSupport.scala:8)
at com.github.phisgr.gatling.grpc.Predef$.(Predef.scala:5)

Maven dependency

<gatling.version>3.7.6</gatling.version>
<gatling-maven-plugin.version>4.2.9</gatling-maven-plugin.version>

com.github.phisgr gatling-grpc 0.14.0 com.thesamet.scalapb scalapb-runtime-grpc_2.13 0.10.2

Please upgrade both Gatling and gatling-grpc versions to the latest releases.

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