Getting Null Pointer Exception when running Gatling

================================================================================ ko
2014-09-03 11:48:19 102s elapsed
---- Scenario 1 ----------------------------------------------------------------
Users : [#################################################################]100%
waiting:0 / running:0 / done:10000
---- Requests ------------------------------------------------------------------

It would help that you:

  • mention the version you’re using (obviously Gatling 1, but which?)
  • if you use an old one, try upgrading first, your problem might have already been fixed
    This is some race condition when shutting down the system. Not harmful.

hi Sorry about that - i’m using Gatling 1.5.3

So first, could you at least try to upgrade to 1.5.6, please?

i have upgraded to 1.5.6 but now i get import exceptions such as:

13:41:19.325 [ERROR] c.e.e.g.a.ZincCompiler$ - import net.liftweb.json._
13:41:19.326 [ERROR] c.e.e.g.a.ZincCompiler$ - ^
13:41:19.361 [ERROR] c.e.e.g.a.ZincCompiler$ - one error found
Exception in thread “main” Compilation failed
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:76)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:35)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:29)
at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:71)
at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:71)
at sbt.compiler.AggressiveCompile$$anonfun$4$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:71)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:101)
at sbt.compiler.AggressiveCompile$$anonfun$4.compileScala$1(AggressiveCompile.scala:70)
at sbt.compiler.AggressiveCompile$$anonfun$4.apply(AggressiveCompile.scala:88)
at sbt.compiler.AggressiveCompile$$anonfun$4.apply(AggressiveCompile.scala:60)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:24)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:22)
at sbt.inc.Incremental$.cycle(Incremental.scala:52)
at sbt.inc.Incremental$.compile(Incremental.scala:29)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:20)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:96)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:44)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:158)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:142)
at com.excilys.ebi.gatling.app.ZincCompiler$.apply(ZincCompiler.scala:104)
at com.excilys.ebi.gatling.app.SimulationClassLoader$.fromSourcesDirectory(SimulationClassLoader.scala:34)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$12.apply(Gatling.scala:89)
at com.excilys.ebi.gatling.app.Gatling$$anonfun$12.apply(Gatling.scala:89)
at scala.Option.getOrElse(Option.scala:108)
at com.excilys.ebi.gatling.app.Gatling.start(Gatling.scala:89)
at com.excilys.ebi.gatling.app.Gatling$.fromMap(Gatling.scala:54)
at com.excilys.ebi.gatling.app.Gatling$.runGatling(Gatling.scala:74)
at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:49)
at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)

We never shipped Lift’s JSON module (or any other Left module).
That’s something you added on your own, and probably forgot to add again when you upgraded.

hi Stephane,
i have already upgraded to 1.5.6 and migrated my test scripts to 1.5.6
the error i have posted previously comes from the 1.5.6 version

any advice?

Thanks
Dor

Correct me if I’m wrong, but I don’t think this is a blocker (exception is probably random and happens when shutting down the Engine, before shutting down the JVM).

We’re currently releasing Gatling 2 candidates that are not effected.
We plan on releasing Final by the end of the month and then stop supporting Gatling 1.
As a consequence, I’m a bit reluctant on investigating this.

i understand.
unfortunately i don’t ave much time and need to run the tests this week.
i’ll try to sort this thing out myself.

thanks for the help