NoSuchMethodError on using gatling 3.13.1, java 17 and com.github.phisgr:gatling-grpc:0.17.0 on java.lang.Object io.gatling.core.protocol.ProtocolComponentsRegistry.components

Hi,
Is com.github.phisgr:gatling-grpc:0.17.0 supported for gatling 3.13.1 and java 17,
Since we are getting NoSuchMethod error, when trying to run loadtest

Below is the error stack trace:

Exception in thread “main” java.lang.NoSuchMethodError: ‘java.lang.Object io.gatling.core.protocol.ProtocolComponentsRegistry.components(io.gatling.core.protocol.ProtocolKey)’
at com.github.phisgr.gatling.grpc.request.Call.(Call.scala:19)
at com.github.phisgr.gatling.grpc.request.UnaryResponse.(UnaryResponse.scala:16)
at com.github.phisgr.gatling.grpc.request.UnaryResponse.(UnaryResponse.scala:27)
at com.github.phisgr.gatling.grpc.action.GrpcCallAction.(GrpcCallAction.scala:26)
at com.github.phisgr.gatling.grpc.action.GrpcCallActionBuilder.build(GrpcCallActionBuilder.scala:19)
at io.gatling.core.structure.BuildAction.$anonfun$build$1(BuildAction.scala:28)
at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:183)
at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:179)
at scala.collection.immutable.List.foldLeft(List.scala:79)
at io.gatling.core.structure.BuildAction.build(BuildAction.scala:27)
at io.gatling.core.structure.BuildAction.build$(BuildAction.scala:26)
at io.gatling.core.structure.ScenarioBuilder.build(StructureBuilder.scala:59)
at io.gatling.core.structure.PopulationBuilder.build(PopulationBuilder.scala:93)
at io.gatling.core.scenario.SimulationParams.buildScenario(Simulation.scala:195)
at io.gatling.core.scenario.SimulationParams.$anonfun$scenarioFlows$1(Simulation.scala:199)
at scala.collection.immutable.List.map(List.scala:247)
at io.gatling.core.scenario.SimulationParams.scenarioFlows(Simulation.scala:199)
at io.gatling.app.Runner.load(Runner.scala:97)
at io.gatling.app.Runner.run(Runner.scala:58)
at io.gatling.app.Gatling$.start(Gatling.scala:83)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:46)
at io.gatling.app.Gatling$.main(Gatling.scala:40)

The plugin stopped at 3.9.5
However, gatling corp’s now officially support gRPC here.

Thanks for the reply. @trinp
I had checked the GRPC documentation mentioned above.

For gatling open source GRPC, there is some limitations as below

  • 5 users maximum
  • 5 minute duration tests

So that means, we cannot use more than 5 users and 5 minutes is my understanding.
Can u please confirm on above.

Officially said, yes.

1 Like

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