Happy new year everyone!
We have RuntimeException in our application due to the following exception:
`
09:49:45.015 [INFO ] i.g.h.a.HttpRequestAction$ - Sending request=SendMailRequest uri=http://192.168.33.180:80/appsuite/api/oxguard/mail?action=emailform&sentfolder=default0%2FINBOX%2FSent%20Items&cid=10&userid=10&session=a549b1527dc5479992b320ab5113bede: scenario=QAPerfOXGuard, userId=1102607594542970213-0
[ERROR] [01/07/2015 09:49:45.417] [GatlingSystem-akka.actor.default-dispatcher-5] [akka://GatlingSystem/user/asyncHandler] com.ning.http.client.providers.netty.request.NettyRequest cannot be cast to com.ning.http.client.multipart.MultipartBody
java.lang.ClassCastException: com.ning.http.client.providers.netty.request.NettyRequest cannot be cast to com.ning.http.client.multipart.MultipartBody
at io.gatling.http.util.package$HttpStringBuilder$$anonfun$1.apply(package.scala:132)
at io.gatling.http.util.package$HttpStringBuilder$$anonfun$1.apply(package.scala:132)
at scala.Option.map(Option.scala:145)
at io.gatling.http.util.package$HttpStringBuilder$.appendRequest$extension(package.scala:132)
at io.gatling.http.ahc.AsyncHandlerActor.dump$1(AsyncHandlerActor.scala:119)
at io.gatling.http.ahc.AsyncHandlerActor.logRequest(AsyncHandlerActor.scala:130)
at io.gatling.http.ahc.AsyncHandlerActor.logAndExecuteNext(AsyncHandlerActor.scala:197)
at io.gatling.http.ahc.AsyncHandlerActor.checkAndProceed$1(AsyncHandlerActor.scala:299)
at io.gatling.http.ahc.AsyncHandlerActor.io$gatling$http$ahc$AsyncHandlerActor$$processResponse(AsyncHandlerActor.scala:326)
at io.gatling.http.ahc.AsyncHandlerActor$$anonfun$receive$1.applyOrElse(AsyncHandlerActor.scala:97)
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)
`
The request which triggers the exception:
`