Gatling 2 (master) - Akka hasn't been started

Hi there,

We’re seeing the following issue when running the gatling simulations using Engine through Intellij. What could be going on?

Simulation whereever.RegistrationSimulation started…
Exception in thread “main” java.lang.UnsupportedOperationException: Akka hasn’t been started
at io.gatling.core.akka.AkkaDefaults$$anonfun$system$1.apply(AkkaDefaults.scala:34)
at io.gatling.core.akka.AkkaDefaults$$anonfun$system$1.apply(AkkaDefaults.scala:34)
at scala.Option.getOrElse(Option.scala:120)
at io.gatling.core.akka.AkkaDefaults$class.system(AkkaDefaults.scala:34)
at io.gatling.core.runner.Runner.system(Runner.scala:27)
at io.gatling.core.runner.Runner.run(Runner.scala:50)
at io.gatling.app.Gatling$$anonfun$19.apply(Gatling.scala:195)
at io.gatling.app.Gatling$$anonfun$19.apply(Gatling.scala:187)
at scala.Option.getOrElse(Option.scala:120)
at io.gatling.app.Gatling.start(Gatling.scala:187)

Hi Stefan,

My best case is that you have a first exception that causes a second one which hides it.
I’ve push a fix, could you give it a try please?

Stéphane

Hi Stéphane,

I never got to check your commit - however, it turned out the the input file to csv() was missing:

.feed(csv(“missing.csv”).random)

However, we didn’t get an error message.

Cheers,

Stefan

I was suspecting something like this.
The problem was that this exception was swallowed because it caused the finally block to fail and throw the exception you observed.

Thanks for your feedback!

Thanks. Fix yields

Exception in thread “main” java.lang.IllegalArgumentException: file missing.csv doesn’t exist

as expected.

Cheers,

Stefan