Failed to execute goal io.gatling:gatling-maven-plugin:2.1.2:execute

HI,

I am using below versions for scala and gatling:

<gatling.version>2.1.4</gatling.version>
<gatling-maven-plugin.version>2.1.2</gatling-maven-plugin.version>
<scala.version>2.10.5</scala.version>
<scala-maven-plugin.version>3.1.6</scala-maven-plugin.version>

Getting below error., any suggestions will be appreciated.

C:\Users\AEH851\AppData\Local\Temp\sbt_b0c6443\xsbt\ExtractAPI.scala:22: error: ‘]’ expected but $XMLSTART$< found.
class ExtractAPI[GlobalType <: CallbackGlobal](val global: GlobalType,
^
C:\Users\AEH851\AppData\Local\Temp\sbt_b0c6443\xsbt\ExtractAPI.scala:120: error: ‘]’ expected but $XMLSTART$< found.
private def lzy[S <: AnyRef](s: => S): xsbti.api.Lazy[S] =
^
C:\Users\AEH851\AppData\Local\Temp\sbt_b0c6443\xsbt\ExtractUsedNames.scala:41: error: ‘]’ expected but $XMLSTART$< found.
class ExtractUsedNames[GlobalType <: CallbackGlobal](val global: GlobalType) extends Compat {
^
three errors found
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:483)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: Error compiling sbt component ‘compiler-interface’
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:145)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:142)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:142)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:139)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:139)
at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:33)
at com.typesafe.zinc.Compiler$.compilerInterface(Compiler.scala:148)
at com.typesafe.zinc.Compiler$.create(Compiler.scala:53)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:115)
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

Thanks,
Prakhar

Gatling 2.1 requires Scala 2.11, not 2.10: http://gatling.io/docs/2.1.5/project/migration_guides/2.0-to-2.1.html

Hi Stephane,

Thanks for that, I did change the version as below:

<gatling.version>2.1.4</gatling.version>
<gatling-maven-plugin.version>2.1.2</gatling-maven-plugin.version>
<scala.version>2.11.4</scala.version>
<scala-maven-plugin.version>3.1.6</scala-maven-plugin.version>

but getting an exception as below, this exception was the reason I jumped back to Scala 2.10.

gatling-maven-plugin:2.1.2:execute (default) @ flightsearch-api —
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:483)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: 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:483)
at sbt.compiler.RawCompiler.apply(RawCompiler.scala:26)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:147)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:142)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:142)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:139)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:139)
at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:33)
at com.typesafe.zinc.Compiler$.compilerInterface(Compiler.scala:148)
at com.typesafe.zinc.Compiler$.create(Compiler.scala:53)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:115)
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
Caused by: java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
at scala.reflect.io.AbstractFile.(AbstractFile.scala:91)
at scala.reflect.io.PlainFile.(PlainFile.scala:34)
at scala.reflect.io.AbstractFile$.getDirectory(AbstractFile.scala:47)
at scala.reflect.io.AbstractFile$.getDirectory(AbstractFile.scala:36)
at scala.tools.nsc.settings.MutableSettings$OutputDirs.setSingleOutput(MutableSettings.scala:269)
at scala.tools.nsc.settings.MutableSettings$OutputSetting.value_$eq(MutableSettings.scala:515)
at scala.tools.nsc.settings.MutableSettings$OutputSetting.(MutableSettings.scala:512)
at scala.tools.nsc.settings.MutableSettings.OutputSetting(MutableSettings.scala:221)
at scala.tools.nsc.settings.ScalaSettings$class.$init$(ScalaSettings.scala:64)
at scala.tools.nsc.settings.MutableSettings.(MutableSettings.scala:19)
at scala.tools.nsc.Settings.(Settings.scala:12)
at scala.tools.nsc.Driver.process(Driver.scala:39)
at scala.tools.nsc.Main.process(Main.scala)
… 31 more
Caused by: java.lang.ClassNotFoundException: scala.collection.GenTraversableOnce$class
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 44 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

Also, another question is, I am using Spring Tool Suite to build the project and did not installed SBT plugin, is this can be a reason for the failure…?? I have Scala IDE installed in the STS though.
How shall I install SBT, if it is needed in my maven project…??

Sorry, I am new to Gatling and Scala.

Thanks,
Prakhar Srivastava

I really think you have a corrupted scala-library artifact, either in your local maven repository, or in your company’s maven proxy if you have one.
Clean it up, or upgrade to Scala 2.11.6 to force download of a different artifact.

ok thanks, what abt my query with SBT…??

Also, another question is, I am using Spring Tool Suite to build the project and did not installed SBT plugin, is this can be a reason for the failure…?? I have Scala IDE installed in the STS though.
How shall I install SBT, if it is needed in my maven project…??

Sorry, I am new to Gatling and Scala.

If you use Maven and Gatling’s Maven Plugin , there is no need for you to install SBT to use Gatling.

Cheers,
Pierre

Hi,

I did deleted the artifact from local m2 repo and used 2.11.6, still getting below error.

— gatling-maven-plugin:2.1.2:execute (default) @ flightsearch-api —
[INFO] Downloading: http://repo.maven.apache.org/maven2/org/scala-lang/scala-compiler/2.11.4/scala-compiler-2.11.4.jar
[INFO] Downloaded: http://repo.maven.apache.org/maven2/org/scala-lang/scala-compiler/2.11.4/scala-compiler-2.11.4.jar (13301 KB at 102.8 KB/sec)
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:483)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: 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:483)
at sbt.compiler.RawCompiler.apply(RawCompiler.scala:26)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:147)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:142)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:142)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:139)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:139)
at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:33)
at com.typesafe.zinc.Compiler$.compilerInterface(Compiler.scala:148)
at com.typesafe.zinc.Compiler$.create(Compiler.scala:53)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:115)
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
Caused by: java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
at scala.reflect.io.AbstractFile.(AbstractFile.scala:91)
at scala.reflect.io.PlainFile.(PlainFile.scala:34)
at scala.reflect.io.AbstractFile$.getDirectory(AbstractFile.scala:47)
at scala.reflect.io.AbstractFile$.getDirectory(AbstractFile.scala:36)
at scala.tools.nsc.settings.MutableSettings$OutputDirs.setSingleOutput(MutableSettings.scala:269)
at scala.tools.nsc.settings.MutableSettings$OutputSetting.value_$eq(MutableSettings.scala:515)
at scala.tools.nsc.settings.MutableSettings$OutputSetting.(MutableSettings.scala:512)
at scala.tools.nsc.settings.MutableSettings.OutputSetting(MutableSettings.scala:221)
at scala.tools.nsc.settings.ScalaSettings$class.$init$(ScalaSettings.scala:64)
at scala.tools.nsc.settings.MutableSettings.(MutableSettings.scala:19)
at scala.tools.nsc.Settings.(Settings.scala:12)
at scala.tools.nsc.Driver.process(Driver.scala:39)
at scala.tools.nsc.Main.process(Main.scala)
… 31 more
Caused by: java.lang.ClassNotFoundException: scala.collection.GenTraversableOnce$class
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 44 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

I am attching the pom for reference. Please suggest.

Cheers,
Prakhar

pom.xml (10.2 KB)

  • Upgrade to gatling 2.1.5.

  • Fix scala-reflect version that you force to 2.10.2 (or better: remove it)

Stephane,

If I remove or use the same version as 2.11.6 for scala reflect then I get below error, there is seriusly something wrong with versions. It shall not be that hard :slight_smile:
Below is the error and attaching the pom again for reference.

— gatling-maven-plugin:2.1.2:execute (default) @ flightsearch-api —
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:483)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: 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:483)
at sbt.compiler.RawCompiler.apply(RawCompiler.scala:26)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:147)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:142)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:142)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:139)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:139)
at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:33)
at com.typesafe.zinc.Compiler$.compilerInterface(Compiler.scala:148)
at com.typesafe.zinc.Compiler$.create(Compiler.scala:53)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:115)
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
Caused by: java.lang.NoClassDefFoundError: scala/reflect/io/PlainFile$
at scala.tools.nsc.io.package$.(package.scala:24)
at scala.tools.nsc.io.package$.(package.scala)
at scala.tools.nsc.util.ClassPath$.join(ClassPath.scala:52)
at scala.tools.nsc.settings.MutableSettings$PathSetting.value(MutableSettings.scala:500)
at scala.tools.nsc.settings.MutableSettings$PathSetting.value(MutableSettings.scala:489)
at scala.tools.nsc.settings.AbsSettings$AbsSetting$class.hashCode(AbsSettings.scala:135)
at scala.tools.nsc.settings.MutableSettings$Setting.hashCode(MutableSettings.scala:347)
at scala.collection.mutable.FlatHashTable$class.addEntry(FlatHashTable.scala:148)
at scala.collection.mutable.HashSet.addEntry(HashSet.scala:40)
at scala.collection.mutable.FlatHashTable$class.addElem(FlatHashTable.scala:139)
at scala.collection.mutable.HashSet.addElem(HashSet.scala:40)
at scala.collection.mutable.HashSet.$plus$eq(HashSet.scala:59)
at scala.tools.nsc.settings.MutableSettings.add(MutableSettings.scala:212)
at scala.tools.nsc.settings.MutableSettings.PathSetting(MutableSettings.scala:228)
at scala.tools.nsc.settings.MutableSettings.PathSetting(MutableSettings.scala:19)
at scala.tools.nsc.settings.StandardScalaSettings$class.$init$(StandardScalaSettings.scala:21)
at scala.tools.nsc.settings.MutableSettings.(MutableSettings.scala:19)
at scala.tools.nsc.Settings.(Settings.scala:12)
at scala.tools.nsc.Driver.process(Driver.scala:39)
at scala.tools.nsc.Main.process(Main.scala)
… 31 more
Caused by: java.lang.ClassNotFoundException: scala.reflect.io.PlainFile$
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 51 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] -----------------------------------------

pom.xml (10.2 KB)

No idea what happens.
Please provide a minimal reproducer (full maven project with just gatling dependencies) that exhibits the issue.

I see that you’re still using the gatling-maven-plugin 2.1.2. Please upgrade to 2.1.5 as I told you.

Hi Stephane,

Sorry for the late reply but I tried that as well and getting the error.
Something shall be wrong with the project:

gatling-maven-plugin:2.1.5:execute (default) @ flightsearch-api —
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:483)
at io.gatling.mojo.MainWithArgsInFile.runMain(MainWithArgsInFile.java:50)
at io.gatling.mojo.MainWithArgsInFile.main(MainWithArgsInFile.java:33)
Caused by: 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:483)
at sbt.compiler.RawCompiler.apply(RawCompiler.scala:26)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:147)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:142)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:142)
at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:139)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:139)
at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:33)
at com.typesafe.zinc.Compiler$.compilerInterface(Compiler.scala:148)
at com.typesafe.zinc.Compiler$.create(Compiler.scala:53)
at io.gatling.compiler.ZincCompiler$delayedInit$body.apply(ZincCompiler.scala:115)
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
Caused by: java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
at scala.reflect.io.AbstractFile.(AbstractFile.scala:91)
at scala.reflect.io.PlainFile.(PlainFile.scala:34)
at scala.reflect.io.AbstractFile$.getDirectory(AbstractFile.scala:47)
at scala.reflect.io.AbstractFile$.getDirectory(AbstractFile.scala:36)
at scala.tools.nsc.settings.MutableSettings$OutputDirs.setSingleOutput(MutableSettings.scala:269)
at scala.tools.nsc.settings.MutableSettings$OutputSetting.value_$eq(MutableSettings.scala:515)
at scala.tools.nsc.settings.MutableSettings$OutputSetting.(MutableSettings.scala:512)
at scala.tools.nsc.settings.MutableSettings.OutputSetting(MutableSettings.scala:221)
at scala.tools.nsc.settings.ScalaSettings$class.$init$(ScalaSettings.scala:64)
at scala.tools.nsc.settings.MutableSettings.(MutableSettings.scala:19)
at scala.tools.nsc.Settings.(Settings.scala:12)
at scala.tools.nsc.Driver.process(Driver.scala:39)
at scala.tools.nsc.Main.process(Main.scala)
… 31 more
Caused by: java.lang.ClassNotFoundException: scala.collection.GenTraversableOnce$class
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 44 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Do you want something from me, more to share…?? I mean this has become a blocker for me now.

Thanks,
Prakhar Srivastava

Please publish on Github a full minimal maven project that exhibits the issue.

Were we able to resolve this ? I am getting the exact same error when trying to use gatling . Changes to pom.xml -

<scala.version>2.11.6</scala.version>

org.scala-lang scala-library ${scala.version} io.gatling.highcharts gatling-charts-highcharts 2.1.6 io.gatling gatling-maven-plugin 2.1.6 net.alchim31.maven scala-maven-plugin 3.2.1

Hi We are experiencing the same issue in my team, when running regression tests in Scala. Anyone has gotten around this issue?

Any help is highly appreciated!

Thank you!
Ankita

Gatling 2.1.4 is no longer, you should update to 2.2.3. Also, gatling-maven-plugin has been updated to 2.2.2.

Cheers.

I meant no longer supported*