java.lang.ClassNotFoundException: io.gatling.core.check.ExtractorCheckBuilder

Hi,

I’ve using the 2.0.0-SNAPSHOT version of Gatling, tried to a simulation today and I’m getting the following error:

Simulation SmokeTestSimulation started…
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at scala_maven_executions.MainHelper.runMain(MainHelper.java:164)
at scala_maven_executions.MainWithArgsInFile.main(MainWithArgsInFile.java:26)

Caused by: java.lang.NoClassDefFoundError: io/gatling/core/check/ExtractorCheckBuilder
at Scenarios$.(Scenarios.scala:11)
at Scenarios$.(Scenarios.scala)
at SmokeTestSimulation.(SmokeTestSimulation.scala:17)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:357)
at java.lang.Class.newInstance(Class.java:310)
at io.gatling.core.runner.Runner.run(Runner.scala:36)
at io.gatling.app.Gatling.start(Gatling.scala:231)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:52)
at io.gatling.app.Gatling$.runGatling(Gatling.scala:77)
at io.gatling.app.Gatling$.runGatling(Gatling.scala:56)
at io.gatling.app.Gatling$.main(Gatling.scala:48)
at io.gatling.app.Gatling.main(Gatling.scala)
… 6 more

Caused by: java.lang.ClassNotFoundException: io.gatling.core.check.ExtractorCheckBuilder
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
… 22 more

This has been working fine and hasn’t been touched for over a week - this breakage seems to correspond with the recent update. Any ideas?

Regards,

Sion

How do you work? With the bundle? With maven?

I see two possible problems:

  • you have to trigger re-compilation (binaries were updated): either touch your simulation or clean the target directory
  • if you use maven, we’re having a hard time properly generating maven metadata so that maven can properly detect that snapshots have been updated. If so, try removing gatling artifacts from your local maven repository.

Hi Stéphane,

I’m using maven, removing the gatling artifacts from my local repo and also doing a ‘mvn clean’ did the job. Thanks for your help!

Regards,

Sion

Glad to hear.
We’re still working on this metadata hell…