Java error when running Engine with Gatling 2.1.1

Now I can rebuild my Gatling project in IntelliJ, but when running engine I get his:


Exception in thread “main” java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object;
at io.gatling.core.config.GatlingPropertiesBuilder.dataDirectory(GatlingPropertiesBuilder.scala:36)
at Engine$.delayedEndpoint$Engine$1(Engine.scala:7)
at Engine$delayedInit$body.apply(Engine.scala:4)
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 Engine$.main(Engine.scala:4)


Any ideas what to do?


You’re somehow mixing Scala 2.10 and Scala 2.11 binaries : Clean your project, rebuild it, it should work

But when running mvn clean install from terminal I get:

[ERROR] Failed to execute goal on project gatling: Could not resolve dependencies for project xxx.yyy.zzz:gatling:jar:1.0-SNAPSHOT: Failure to find org.scala-lang:scala-library:jar:2.11 in was cached in the local repository, resolution will not be reattempted until the update interval of excilys has elapsed or updates are forced → [Help 1]

Do you realise that it’s EXACTLY the same problem you had in another thread ?
Double check your pom.xml, you must have forgotten something.

Right, I just red the other thread. I had two scala-sdk in my global libraries in IntelliJ.
My bad.
Thanks for all the help.
I am now up and running on 2.1.1.