question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatibility with newest Gatling 3.4.x

See original GitHub issue

After upgrading to gatling 3.4.x on our side, we noticed that karate-gatling tests are now crashing.

Here is the stacktrace:

15:41:41.365 [main] ERROR io.gatling.app.Gatling$ - Run crashed
java.lang.NoSuchMethodError: io.gatling.core.protocol.ProtocolComponents$.NoopOnStart()Lscala/Function1;
        at com.intuit.karate.gatling.KarateComponents.onStart(KarateProtocol.scala:38)
        at io.gatling.core.protocol.ProtocolComponentsRegistry.$anonfun$onStart$1(Protocol.scala:79)
        at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:285)
        at scala.collection.mutable.HashMap$$anon$2.$anonfun$foreach$3(HashMap.scala:158)
        at scala.collection.mutable.HashTable.foreachEntry(HashTable.scala:237)
        at scala.collection.mutable.HashTable.foreachEntry$(HashTable.scala:230)
        at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:44)
        at scala.collection.mutable.HashMap$$anon$2.foreach(HashMap.scala:158)
        at scala.collection.TraversableLike.map(TraversableLike.scala:285)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:278)
        at scala.collection.AbstractTraversable.map(Traversable.scala:108)
        at io.gatling.core.protocol.ProtocolComponentsRegistry.onStart(Protocol.scala:79)
        at io.gatling.core.structure.PopulationBuilder.build(PopulationBuilder.scala:104)
        at io.gatling.core.scenario.SimulationParams.buildScenario(Simulation.scala:170)
        at io.gatling.core.scenario.SimulationParams.$anonfun$scenarios$1(Simulation.scala:174)
        at scala.collection.immutable.List.map(List.scala:293)
        at io.gatling.core.scenario.SimulationParams.scenarios(Simulation.scala:174)
        at io.gatling.app.Runner.run0(Runner.scala:82)
        at io.gatling.app.Runner.run(Runner.scala:52)
        at io.gatling.app.Gatling$.start(Gatling.scala:80)
        at io.gatling.app.Gatling$.fromArgs(Gatling.scala:45)
        at io.gatling.app.Gatling$.main(Gatling.scala:37)
        at io.gatling.app.Gatling.main(Gatling.scala)
Exception in thread "main" java.lang.NoSuchMethodError: io.gatling.core.protocol.ProtocolComponents$.NoopOnStart()Lscala/Function1;
        at com.intuit.karate.gatling.KarateComponents.onStart(KarateProtocol.scala:38)
        at io.gatling.core.protocol.ProtocolComponentsRegistry.$anonfun$onStart$1(Protocol.scala:79)
        at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:285)
        at scala.collection.mutable.HashMap$$anon$2.$anonfun$foreach$3(HashMap.scala:158)
        at scala.collection.mutable.HashTable.foreachEntry(HashTable.scala:237)
        at scala.collection.mutable.HashTable.foreachEntry$(HashTable.scala:230)
        at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:44)
        at scala.collection.mutable.HashMap$$anon$2.foreach(HashMap.scala:158)
        at scala.collection.TraversableLike.map(TraversableLike.scala:285)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:278)
        at scala.collection.AbstractTraversable.map(Traversable.scala:108)
        at io.gatling.core.protocol.ProtocolComponentsRegistry.onStart(Protocol.scala:79)
        at io.gatling.core.structure.PopulationBuilder.build(PopulationBuilder.scala:104)
        at io.gatling.core.scenario.SimulationParams.buildScenario(Simulation.scala:170)
        at io.gatling.core.scenario.SimulationParams.$anonfun$scenarios$1(Simulation.scala:174)
        at scala.collection.immutable.List.map(List.scala:293)
        at io.gatling.core.scenario.SimulationParams.scenarios(Simulation.scala:174)
        at io.gatling.app.Runner.run0(Runner.scala:82)
        at io.gatling.app.Runner.run(Runner.scala:52)
        at io.gatling.app.Gatling$.start(Gatling.scala:80)
        at io.gatling.app.Gatling$.fromArgs(Gatling.scala:45)
        at io.gatling.app.Gatling$.main(Gatling.scala:37)
        at io.gatling.app.Gatling.main(Gatling.scala)

In this commit as part of Gatling 3.4.x we see that NoopOnStart was replaced by Session.identity, the former of which is referenced here.

Any plans to uptake/support the new Gatling release?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ptrthomascommented, Apr 20, 2021

@cba64 ha ha, very funny. the reason I point people to the submit-issue page is because comparing your code with the current version of the reference-example is the fastest way to solve issues, but hey - to each his / her own

p.s. this is an oss project, PR-s for the documentation are most welcome

1reaction
rooequecommented, Oct 21, 2020

@sixdouglas tested your branch, tests are working now! Thanks fo the quick turnaround

@ptrthomas I saw this issue was tagged with the 1.0.0 milestone. Any chance we could get a closer patch release (e.x. 0.9.7)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incompatibility with newest Gatling 3.4.x · Issue #1333 - GitHub
After upgrading to gatling 3.4.x on our side, we noticed that karate-gatling tests are now crashing. Here is the stacktrace: 15:41:41.365 ...
Read more >
Incompatibility with newest Gatling 3.4.x - Bountysource
After upgrading to gatling 3.4.x on our side, we noticed that karate-gatling tests are now crashing. Here is the stacktrace:
Read more >
Gatling Enterprise Self-Hosted - Release Notes
Gatling Enterprise 1.16.0 is compatible with Gatling 3.3, 3.4, 3.5, 3.6 and 3.7. Still, you're recommended to upgrade to 3.7.1, older versions ...
Read more >
Migrating from 3.4 to 3.5 - Gatling
Gatling 3.5 is now compiled against Scala 2.13, which is not binary compatible with Scala 2.12. Any code compiled with a previous version...
Read more >
java.lang.NoSuchMethodError in java - Gatling Community
Hi there, I'm having a strange issue - it looks to me like a scala version mismatch - but this is the funny...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found