Hello Gatling community,
With Gatling 2.1.5 run through gatling maven plugin I’m seeing a lot of errors of type:
06:23:26.281 [GatlingSystem-akka.actor.default-dispatcher-16][ERROR][DataWriter.scala:96] i.g.c.r.w.FileDataWriter - Can’t handle RequestMessage(…) when in uninitialized state, discarding
Any ideas, what did I miss to do or am doing wrong?
Kind regards,
Stevo Slavic.
Found root cause, it fails to initialize at the very beginning with NPE from Gatling, since in my simulation null was outputed as extra info under specific condition, and Gatling cannot handle it, but happily proceeds with the simulation, while recording simulation log does not work. I fixed my simulation to output empty string instead of null. Maybe Gatling (maven plugin) could be improved to fail earlier.
ERROR] [04/22/2015 13:34:52.907] [GatlingSystem-akka.actor.default-dispatcher-8] [akka://GatlingSystem/user/FileDataWriter] null
java.lang.NullPointerException
at io.gatling.core.result.writer.FileDataWriter$RequestMessageSerializer$$anonfun$io$gatling$core$result$writer$FileDataWriter$RequestMessageSerializer$$serializeExtraInfo$extension$1.apply(FileDataWriter.scala:67)
at io.gatling.core.result.writer.FileDataWriter$RequestMessageSerializer$$anonfun$io$gatling$core$result$writer$FileDataWriter$RequestMessageSerializer$$serializeExtraInfo$extension$1.apply(FileDataWriter.scala:67)
at scala.collection.immutable.List.map(List.scala:277)
at io.gatling.core.result.writer.FileDataWriter$RequestMessageSerializer$.io$gatling$core$result$writer$FileDataWriter$RequestMessageSerializer$$serializeExtraInfo$extension(FileDataWriter.scala:67)
at io.gatling.core.result.writer.FileDataWriter$RequestMessageSerializer$.serialize$extension(FileDataWriter.scala:78)
at io.gatling.core.result.writer.FileDataWriter.onRequestMessage(FileDataWriter.scala:140)
at io.gatling.core.result.writer.DataWriter$$anonfun$initialized$1.applyOrElse(DataWriter.scala:104)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at io.gatling.core.akka.BaseActor.aroundReceive(BaseActor.scala:22)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
at akka.dispatch.Mailbox.run(Mailbox.scala:221)
at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
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)