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

946 views
Skip to first unread message

sion....@gmail.com

unread,
May 7, 2014, 5:45:57 AM5/7/14
to gat...@googlegroups.com
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$.<init>(Scenarios.scala:11)
at Scenarios$.<clinit>(Scenarios.scala)
at SmokeTestSimulation.<init>(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

Stéphane Landelle

unread,
May 7, 2014, 6:00:37 AM5/7/14
to gat...@googlegroups.com
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.


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sion....@gmail.com

unread,
May 7, 2014, 6:12:26 AM5/7/14
to gat...@googlegroups.com
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

Stéphane Landelle

unread,
May 7, 2014, 6:14:16 AM5/7/14
to gat...@googlegroups.com
Glad to hear.
We're still working on this metadata hell...
Reply all
Reply to author
Forward
0 new messages