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

3,195 views
Skip to first unread message

Prakhar Srivastava

unread,
May 4, 2015, 5:30:04 AM5/4/15
to gat...@googlegroups.com
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

Stéphane LANDELLE

unread,
May 4, 2015, 5:32:52 AM5/4/15
to gat...@googlegroups.com

Stéphane Landelle
Lead developer


--
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.

Prakhar Srivastava

unread,
May 4, 2015, 5:54:05 AM5/4/15
to gat...@googlegroups.com
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.<init>(AbstractFile.scala:91)
at scala.reflect.io.PlainFile.<init>(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.<init>(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.<init>(MutableSettings.scala:19)
at scala.tools.nsc.Settings.<init>(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

Stéphane LANDELLE

unread,
May 4, 2015, 5:57:20 AM5/4/15
to gat...@googlegroups.com
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.

Stéphane Landelle
Lead developer


Prakhar Srivastava

unread,
May 4, 2015, 6:01:06 AM5/4/15
to gat...@googlegroups.com
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.

Pierre DAL-PRA

unread,
May 4, 2015, 6:02:50 AM5/4/15
to gat...@googlegroups.com
If you use Maven and Gatling's Maven Plugin , there is no need for you to install SBT to use Gatling.

Cheers,
Pierre 

Prakhar Srivastava

unread,
May 4, 2015, 6:28:36 AM5/4/15
to gat...@googlegroups.com
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] ------------------------------------------------------------------------

I am attching the pom for reference. Please suggest.

Cheers,
Prakhar
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
pom.xml

Stéphane LANDELLE

unread,
May 4, 2015, 6:50:35 AM5/4/15
to gat...@googlegroups.com
  • Upgrade to gatling 2.1.5.
  • Fix scala-reflect version that you force to 2.10.2 (or better: remove it)


Stéphane Landelle
Lead developer


Prakhar Srivastava

unread,
May 4, 2015, 7:37:35 AM5/4/15
to gat...@googlegroups.com, slan...@gatling.io
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 :)
Below is the error and attaching the pom again for reference.
--- gatling-maven-plugin:2.1.2:execute (default) @ flightsearch-api ---
Caused by: java.lang.NoClassDefFoundError: scala/reflect/io/PlainFile$
at scala.tools.nsc.io.package$.<init>(package.scala:24)
at scala.tools.nsc.io.package$.<clinit>(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.<init>(MutableSettings.scala:19)
at scala.tools.nsc.Settings.<init>(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] -----------------------------------------

Thanks,
Prakhar

save paper save trees save life
GO GREEN!!!

--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/zaVAsSKVMeM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.
pom.xml

Stéphane LANDELLE

unread,
May 4, 2015, 8:01:56 AM5/4/15
to gat...@googlegroups.com
No idea what happens.
Please provide a minimal reproducer (full maven project with just gatling dependencies) that exhibits the issue.

Stéphane Landelle
Lead developer


Stéphane LANDELLE

unread,
May 4, 2015, 11:36:09 AM5/4/15
to gat...@googlegroups.com
I see that you're still using the gatling-maven-plugin 2.1.2. Please upgrade to 2.1.5 as I told you.

Stéphane Landelle
Lead developer


Prakhar Srivastava

unread,
May 6, 2015, 8:15:54 AM5/6/15
to gat...@googlegroups.com
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 ---
[INFO] ------------------------------------------------------------------------

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

Thanks,
Prakhar Srivastava
Pierre 
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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.

Stéphane LANDELLE

unread,
May 6, 2015, 8:17:26 AM5/6/15
to gat...@googlegroups.com
Please publish on Github a full minimal maven project that exhibits the issue.

Stéphane Landelle
Lead developer


--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/zaVAsSKVMeM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Akash Agarwal

unread,
Jun 30, 2015, 8:22:53 PM6/30/15
to gat...@googlegroups.com
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>

<dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>${scala.version}</version>
        </dependency>
        <dependency>
            <groupId>io.gatling.highcharts</groupId>
            <artifactId>gatling-charts-highcharts</artifactId>
            <version>2.1.6</version>
        </dependency>

            <plugin>
                <groupId>io.gatling</groupId>
                <artifactId>gatling-maven-plugin</artifactId>
                <version>2.1.6</version>
            </plugin>
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
                <version>3.2.1</version>
            </plugin>
...

Ankita Nellimarla

unread,
Feb 23, 2017, 5:37:28 PM2/23/17
to Gatling User Group
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 

Guillaume CORRE

unread,
Feb 24, 2017, 3:37:29 AM2/24/17
to gat...@googlegroups.com
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.

--
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+unsubscribe@googlegroups.com.

Guillaume CORRE

unread,
Feb 24, 2017, 3:37:38 AM2/24/17
to gat...@googlegroups.com
I meant no longer supported*
Reply all
Reply to author
Forward
0 new messages