gatling maven plugin 2.1.5 exception

Hello gatling dev team.
This is an exception raised while executing scenario with gatling maven plugin 2.1.5 (2.1.2 version works fine).

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: java.lang.NoSuchMethodError: scala.reflect.internal.settings.MutableSettings$SettingValue.valueSetByUser()Lscala/Option;
at scala.tools.nsc.Global.(Global.scala:335)
at xsbt.CallbackGlobal.(CompilerInterface.scala:36)
at xsbt.CachedCompiler0$Compiler.(CompilerInterface.scala:162)
at xsbt.CachedCompiler0.(CompilerInterface.scala:160)
at xsbt.CompilerInterface.newCompiler(CompilerInterface.scala:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:102)
at sbt.compiler.AnalyzingCompiler.newCachedCompiler(AnalyzingCompiler.scala:57)
at sbt.compiler.AnalyzingCompiler.newCachedCompiler(AnalyzingCompiler.scala:52)
at sbt.compiler.CompilerCache$$anon$2.apply(CompilerCache.scala:50)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:39)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:99)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:99)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:99)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:166)
at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:143)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:87)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:39)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:37)
at sbt.inc.IncrementalCommon.cycle(Incremental.scala:99)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:38)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:37)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:65)
at sbt.inc.Incremental$.compile(Incremental.scala:37)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:27)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:157)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:71)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:193)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:174)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:165)
at io.gatling.compiler.ZincCompiler$$anonfun$4.apply(ZincCompiler.scala:121)
at io.gatling.compiler.ZincCompiler$$anonfun$4.apply(ZincCompiler.scala:121)
at scala.util.Try$.apply(Try.scala:161)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:121)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
at scala.App$class.main(App.scala:71)
at io.gatling.compiler.ZincCompiler$.main(ZincCompiler.scala:35)
at io.gatling.compiler.ZincCompiler.main(ZincCompiler.scala)
… 6 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.514 s
[INFO] Finished at: 2015-04-26T16:34:58+02:00
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.gatling:gatling-maven-plugin:2.1.5:execute (default-cli) on project . . . . . . . .

Do you also use Gatling 2.1.5 ?

Yes.sure.

Hi,

Could you share a simple reproducer, like a minimal project, please?

Thanks,

Hi Guys
Sorry for disappearing .I didn’t work 2 days.
I found the problem.
It was a POM dependency issue.
everything works fine.

Thanks.

Exactly which dependency was this? I am getting a similar error with additional logs like :

`

Caused by: org.apache.maven.plugin.MojoExecutionException: Gatling failed.

`

is that what you were experiencing?

Thanks.

  • Emile.

It was my code issue. Several additional protocol support…mqtt I guess…
Can you provide your POM.xml
And simulation example I’ll try to help

Hi Gregory,

Attached are my pom.xml and a simulation file.

  • Emile.

pom.xml (7.68 KB)

Standard_1hr.scala (2.1 KB)

Your pom is a mess: you have artifacts from Gatling 1.5.5, 2.0.0-M1, 2.1.5, 2.2.0-M1, 2.2.0-M2, all this with Scala 2.10 that was for Gatling 2.0 only (Gatling 2.1 and 2.2 use Scala 2.11).

Clean it up.

Emili.
please use POM.xml from https://github.com/gatling/gatling-maven-plugin-demo

Your Pom.xml file is mess. it combined from several gatling not compatible to each other artifacts versions .

Had the same exception. Problem was with dependencies to scala-reflect from gatling-charts-highcharts (2.1.7) and scalatest_2.11 (2.2.5). I have fixed it by adding target test dependency for org.scala-lang.scala-reflect v 2.11.7

W dniu niedziela, 26 kwietnia 2015 15:40:53 UTC+2 użytkownik Gregory Melekh napisał:

How did you end up depending on scalatest? Did you add it yourself?

*Stéphane Landelle*
*GatlingCorp CEO*
slandelle@gatling.io

Yup…