Skip to content

Gatling 3.13 compatibility #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aristotelous-perivola opened this issue Mar 25, 2025 · 2 comments · Fixed by #25
Closed

Gatling 3.13 compatibility #21

aristotelous-perivola opened this issue Mar 25, 2025 · 2 comments · Fixed by #25

Comments

@aristotelous-perivola
Copy link

Hello, I would like to know if the plugin is compatible with gatling 3.13.X version. I am using gatling with java and i am following this example:
https://gatling.io/blog/kafka-load-test.

When i try to launch the simulation with mvn gatling:test I get some errors that might be attributed to version mismatch:
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.gatling.plugin.util.ForkMain.runMain(ForkMain.java:67)
at io.gatling.plugin.util.ForkMain.main(ForkMain.java:35)
Caused by: java.lang.NoSuchMethodError: 'java.lang.Object io.gatling.core.protocol.ProtocolComponentsRegistry.components(io.gatling.core.protocol.ProtocolKey)'
at org.galaxio.gatling.kafka.actions.KafkaRequestActionBuilder.build(KafkaRequestActionBuilder.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:193)
at io.gatling.core.scenario.SimulationParams.$anonfun$scenarioFlows$1(Simulation.scala:197)
at scala.collection.immutable.List.map(List.scala:247)
at io.gatling.core.scenario.SimulationParams.scenarioFlows(Simulation.scala:197)
at io.gatling.app.Runner.load(Runner.scala:96)
at io.gatling.app.Runner.run(Runner.scala:55)
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)
at io.gatling.app.Gatling.main(Gatling.scala)

Thanks in advance

@slandelle
Copy link
Contributor

Note: I've provided a PR for upgrading but it wasn't merged: #14

@RussGarratt
Copy link
Contributor

Have also submitted a PR (using Gatling 3.13.5) - but it may be a bit more of a longer review than the above
@slandelle -> did you not have to add the runtime opts for add-opens?

Found I had to in: #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants