Maven Gatling 3.0.2 not working

When I run “mvn clean gatling:test -Dgatling.simulationClass=package.SimpleSim”, I get the following error:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;)V
at io.gatling.core.cli.CommandLineConstant.(CommandLineConstant.scala:19)
at io.gatling.app.cli.CommandLineConstants$.(CommandLineConstants.scala:22)
at io.gatling.app.cli.CommandLineConstants$.(CommandLineConstants.scala)
at io.gatling.app.cli.ArgsParser$$anon$1.(ArgsParser.scala:30)
at io.gatling.app.cli.ArgsParser.(ArgsParser.scala:28)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:46)
at io.gatling.app.Gatling$.main(Gatling.scala:39)
at io.gatling.app.Gatling.main(Gatling.scala)

The funny thing is - I have other Gatling projects that runs fine using a same version of Maven Gatling. My POM is similar to the ones that are working properly right now. The POM looks like this:

UTF-8 1.8 1.8 3.0.3 3.0.2 io.gatling.highcharts gatling-charts-highcharts ${gatling.version} test com.typesafe config 1.3.4 com.typesafe.scala-logging scala-logging_2.12 3.9.0 src/main src/test io.gatling gatling-maven-plugin ${gatling-plugin.version} integration-test test ${project.basedir}/src/test/resources/gatling_conf true package.RunRequestSimulation

Any help would be greatly appreciated…

Hi,

Is this a duplicate of the issue where I asked you what happens when you upgrade Gatling version’s (not the plugin) to 3.1.1?