AbstractMethodError while starting tests

Hello, I’m trying to create Gatling tests for this service: https://github.com/satyriasizz/simple-scala-rest-example/tree/gatling

I’ve already added dependencies specified there: GitHub - gatling/gatling-sbt-plugin: Gatling Plugin for SBT

Unfortunately, I get error, then trying to start tests, even with empty simulation:

CustomerSimulation.scala:

package com.sysgears.example

class CustomerSimulation extends io.gatling.core.scenario.Simulation {

}

sbt:

gatling:test
[info] Compiling 1 Scala source to /home/andrey/IdeaProjects/simple-scala-rest-new/target/scala-2.10/test-classes…
[info] Compiling 1 Scala source to /home/andrey/IdeaProjects/simple-scala-rest-new/target/scala-2.10/gatling-classes…
Simulation com.sysgears.example.CustomerSimulation started…
[DEBUG] [06/20/2014 12:48:17.239] [main] [EventStream(akka://GatlingSystem)] logger log1-Logging$DefaultLogger started
[DEBUG] [06/20/2014 12:48:17.240] [main] [EventStream(akka://GatlingSystem)] Default Loggers started
Uncaught error from thread [GatlingSystem-akka.actor.default-dispatcher-2Uncaught error from thread [GatlingSystem-akka.actor.default-dispatcher-5] shutting down JVM since ‘akka.jvm-exit-on-fatal-error’ is enabled for ActorSystem[GatlingSystem]
] shutting down JVM since ‘akka.jvm-exit-on-fatal-error’ is enabled for ActorSystem[GatlingSystem]
java.lang.AbstractMethodError
at akka.actor.ActorCell.create(ActorCell.scala:580)
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
at akka.dispatch.Mailbox.run(Mailbox.scala:219)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
java.lang.AbstractMethodError
Exception in thread “Thread-1” java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2598)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1318)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at sbt.React.react(ForkTests.scala:110)
at sbt.ForkTests$$anonfun$mainTestTask$1$Acceptor$2$.run(ForkTests.scala:69)
at java.lang.Thread.run(Thread.java:745)
[info] Simulation(s) execution ended.
[error] Error during tests:
[error] Running java with options -classpath /home/andrey/IdeaProjects/simple-scala-rest-new/target/scala-2.10/gatling-classes:/home/andrey/IdeaProjects/simple-scala-rest-new/target/scala-2.10/classes:/home/andrey/IdeaProjects/simple-scala-rest-new/target/scala-2.10/test-classes:/home/andrey/.ivy2/cache/io.spray/spray-can/bundles/spray-can-1.3.1.jar:/home/andrey/.ivy2/cache/io.spray/spray-io/bundles/spray-io-1.3.1.jar:/home/andrey/.ivy2/cache/io.spray/spray-util/bundles/spray-util-1.3.1.jar:/home/andrey/.ivy2/cache/io.spray/spray-http/bundles/spray-http-1.3.1.jar:/home/andrey/.ivy2/cache/org.parboiled/parboiled-scala_2.10/bundles/parboiled-scala_2.10-1.1.6.jar:/home/andrey/.ivy2/cache/org.parboiled/parboiled-core/bundles/parboiled-core-1.1.6.jar:/home/andrey/.ivy2/cache/io.spray/spray-routing/bundles/spray-routing-1.3.1.jar:/home/andrey/.ivy2/cache/io.spray/spray-httpx/bundles/spray-httpx-1.3.1.jar:/home/andrey/.ivy2/cache/org.jvnet.mimepull/mimepull/jars/mimepull-1.9.4.jar:/home/andrey/.ivy2/cache/com.chuusai/shapeless_2.10/jars/shapeless_2.10-1.2.4.jar:/home/andrey/.ivy2/cache/net.liftweb/lift-json_2.10/jars/lift-json_2.10-2.5.1.jar:/home/andrey/.ivy2/cache/org.scala-lang/scalap/jars/scalap-2.10.0.jar:/home/andrey/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.4.1.jar:/home/andrey/.ivy2/cache/com.typesafe.slick/slick_2.10/jars/slick_2.10-1.0.1.jar:/home/andrey/.ivy2/cache/mysql/mysql-connector-java/jars/mysql-connector-java-5.1.25.jar:/home/andrey/.ivy2/cache/com.typesafe.akka/akka-actor_2.10/jars/akka-actor_2.10-2.3.3.jar:/home/andrey/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.10.4.jar:/home/andrey/.ivy2/cache/com.typesafe/config/bundles/config-1.2.1.jar:/home/andrey/.ivy2/cache/com.typesafe.akka/akka-slf4j_2.10/jars/akka-slf4j_2.10-2.3.3.jar:/home/andrey/.ivy2/cache/io.gatling.highcharts/gatling-charts-highcharts/jars/gatling-charts-highcharts-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-charts/jars/gatling-charts-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-core/jars/gatling-core-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.10.4.jar:/home/andrey/.ivy2/cache/org.scala-lang/scala-reflect/jars/scala-reflect-2.10.4.jar:/home/andrey/.ivy2/cache/io.gatling/jsr166e/jars/jsr166e-1.0.jar:/home/andrey/.ivy2/cache/net.sf.saxon/Saxon-HE/jars/Saxon-HE-9.5.1-5-compressed.jar:/home/andrey/.ivy2/cache/joda-time/joda-time/jars/joda-time-2.3.jar:/home/andrey/.ivy2/cache/org.joda/joda-convert/jars/joda-convert-1.5.jar:/home/andrey/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.7.7.jar:/home/andrey/.ivy2/cache/com.typesafe/scalalogging-slf4j_2.10/jars/scalalogging-slf4j_2.10-1.1.0.jar:/home/andrey/.ivy2/cache/io.gatling/jsonpath_2.10/jars/jsonpath_2.10-0.4.1.jar:/home/andrey/.ivy2/cache/com.fasterxml.jackson.core/jackson-databind/bundles/jackson-databind-2.4.1.jar:/home/andrey/.ivy2/cache/com.fasterxml.jackson.core/jackson-annotations/bundles/jackson-annotations-2.4.0.jar:/home/andrey/.ivy2/cache/com.fasterxml.jackson.core/jackson-core/bundles/jackson-core-2.4.1.jar:/home/andrey/.ivy2/cache/io.fastjson/boon/jars/boon-0.21.jar:/home/andrey/.ivy2/cache/io.gatling.uncommons.maths/uncommons-maths/jars/uncommons-maths-1.2.3-jdk6.jar:/home/andrey/.ivy2/cache/org.jodd/jodd-lagarto/jars/jodd-lagarto-3.6.0-BETA1.jar:/home/andrey/.ivy2/cache/org.jodd/jodd-core/jars/jodd-core-3.6.0-BETA1.jar:/home/andrey/.ivy2/cache/org.jodd/jodd-log/jars/jodd-log-3.6.0-BETA1.jar:/home/andrey/.ivy2/cache/com.dongxiguo/fastring_2.10/jars/fastring_2.10-0.2.4.jar:/home/andrey/.ivy2/cache/net.sf.opencsv/opencsv/jars/opencsv-2.3.jar:/home/andrey/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar:/home/andrey/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-1.1.2.jar:/home/andrey/.ivy2/cache/com.tdunning/t-digest/jars/t-digest-3.0.jar:/home/andrey/.ivy2/cache/org.hdrhistogram/HdrHistogram/jars/HdrHistogram-1.2.1.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-app/jars/gatling-app-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-http/jars/gatling-http-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/com.ning/async-http-client/jars/async-http-client-1.8.11.jar:/home/andrey/.ivy2/cache/io.netty/netty/bundles/netty-3.9.2.Final.jar:/home/andrey/.ivy2/cache/com.jcraft/jzlib/jars/jzlib-1.1.3.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-jms/jars/gatling-jms-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/javax.jms/jms-api/jars/jms-api-1.1-rev-1.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-jdbc/jars/gatling-jdbc-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-redis/jars/gatling-redis-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/net.debasishg/redisclient_2.10/jars/redisclient_2.10-2.12.jar:/home/andrey/.ivy2/cache/commons-pool/commons-pool/jars/commons-pool-1.6.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-metrics/jars/gatling-metrics-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/com.github.scopt/scopt_2.10/jars/scopt_2.10-3.2.0.jar:/home/andrey/.ivy2/cache/com.typesafe.zinc/zinc/jars/zinc-0.3.5.jar:/home/andrey/.ivy2/cache/com.typesafe.sbt/incremental-compiler/jars/incremental-compiler-0.13.5.jar:/home/andrey/.ivy2/cache/com.typesafe.sbt/sbt-interface/jars/sbt-interface-0.13.5.jar:/home/andrey/.ivy2/cache/com.typesafe.sbt/compiler-interface/jars/compiler-interface-0.13.5-sources.jar:/home/andrey/.ivy2/cache/io.gatling/gatling-recorder/jars/gatling-recorder-2.0.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/org.scala-lang/scala-swing/jars/scala-swing-2.10.4.jar:/home/andrey/.ivy2/cache/io.gatling/test-framework/jars/test-framework-1.0-SNAPSHOT.jar:/home/andrey/.ivy2/cache/org.scala-sbt/test-interface/jars/test-interface-1.0.jar:/home/andrey/.ivy2/cache/io.spray/spray-testkit/jars/spray-testkit-1.3.1.jar:/home/andrey/.ivy2/cache/com.typesafe.akka/akka-testkit_2.10/jars/akka-testkit_2.10-2.3.0.jar:/home/andrey/.ivy2/cache/org.specs2/specs2_2.10/jars/specs2_2.10-2.3.12.jar:/home/andrey/.ivy2/cache/org.scalamacros/quasiquotes_2.10/jars/quasiquotes_2.10-2.0.0-M7.jar:/home/andrey/.ivy2/cache/org.pegdown/pegdown/jars/pegdown-1.2.1.jar:/home/andrey/.ivy2/cache/org.parboiled/parboiled-java/jars/parboiled-java-1.1.4.jar:/home/andrey/.ivy2/cache/org.ow2.asm/asm/jars/asm-4.1.jar:/home/andrey/.ivy2/cache/org.ow2.asm/asm-tree/jars/asm-tree-4.1.jar:/home/andrey/.ivy2/cache/org.ow2.asm/asm-analysis/jars/asm-analysis-4.1.jar:/home/andrey/.ivy2/cache/org.ow2.asm/asm-util/jars/asm-util-4.1.jar:/home/andrey/.ivy2/cache/org.scalaz/scalaz-core_2.10/bundles/scalaz-core_2.10-7.0.6.jar:/home/andrey/.ivy2/cache/org.scalaz/scalaz-concurrent_2.10/bundles/scalaz-concurrent_2.10-7.0.6.jar:/home/andrey/.ivy2/cache/org.scalaz/scalaz-effect_2.10/bundles/scalaz-effect_2.10-7.0.6.jar:/home/andrey/.ivy2/cache/org.scalacheck/scalacheck_2.10/jars/scalacheck_2.10-1.11.3.jar:/home/andrey/.ivy2/cache/org.hamcrest/hamcrest-core/jars/hamcrest-core-1.3.jar:/home/andrey/.ivy2/cache/org.mockito/mockito-core/jars/mockito-core-1.9.5.jar:/home/andrey/.ivy2/cache/org.objenesis/objenesis/jars/objenesis-1.0.jar:/home/andrey/.ivy2/cache/junit/junit/jars/junit-4.11.jar:/home/andrey/.ivy2/cache/org.specs2/classycle/jars/classycle-1.4.3.jar:/home/andrey/.sbt/boot/scala-2.10.2/org.scala-sbt/sbt/0.13.0/test-agent-0.13.0.jar:/home/andrey/.sbt/boot/scala-2.10.2/org.scala-sbt/sbt/0.13.0/test-interface-1.0.jar sbt.ForkMain 48823 failed with exit code 255
[error] (gatling:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 5 s, completed Jun 20, 2014 12:48:17 PM

Can anyone help with this?

Thanks in advance.

Gatling current snapshot targets Akka 2.2 (we were asked not to upgrade at the moment). We’ll target Akka 2.3 with Gatling 2.1.
Your project ships Spray 1.3 that depends on Akka 2.3, which is not binary compatible with Akka 2.2.

Thank you for answer.