App I'm running load tests against is using STOMP over websocket protocol.
I'm getting this exception from time to time:
10:14:02.119 [GatlingSystem-akka.actor.default-dispatcher-6][ERROR][BaseActor.scala:33] i.g.h.a.a.w.WsActor - Actor io.gatling.http.action.async.ws.WsActor@4a6c7aef crashed on message Some(OnTextMessage(h,1508321642119))
java.lang.IllegalArgumentException: Actor io.gatling.http.action.async.ws.WsActor@4a6c7aef doesn't support message OnTextMessage(h,1508321642119)
at io.gatling.core.akka.BaseActor.unhandled(BaseActor.scala:38)
at akka.actor.Actor.aroundReceive(Actor.scala:515)
at akka.actor.Actor.aroundReceive$(Actor.scala:512)
at io.gatling.core.akka.BaseActor.aroundReceive(BaseActor.scala:23)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:527)
at akka.actor.ActorCell.invoke(ActorCell.scala:496)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Looks like it could be caused by a heartbeat message coming from the server, but I'm not 100% sure.
What is a proper way to handle this case?
The main problem is, that user which encounters this kind of thing hangs forever instead of finishing its scenario in time specified (I'm using .during() loop).