"Crash on extraInfo serialization"

Hello,

I am firing HTTP Requests to the server at 10 requests/sec. I have randomized the custom headers to be sent with the request and I am capturing using .extrainfoextractor into the simulation.log. I require these headers to be captured for some verification offline.

val GSPHTTPConf_WithLogging = http
.baseURL(GSPBaseURL)
.acceptHeader(“application/json”)
.acceptLanguageHeader(“en-US,en;q=0.8”)
.acceptEncodingHeader(“gzip, deflate”)
.userAgentHeader(“Gatling”)
.acceptCharsetHeader(“ISO-8859-1,utf-8;q=0.7,*;q=0.7”)
.connectionHeader(“keep-alive”)
.contentTypeHeader(“application/json”)
.shareConnections
.disableCaching
.extraInfoExtractor(extraInfo => List(“AUDIT_LOG”,
extraInfo.request.getHeaders.get(“txn”),
extraInfo.request.getHeaders.get(“gstin”),
extraInfo.request.getHeaders.get(“auth-token”)))

object RequestType {
val OtpRequest = scenario(“OTPREQUEST”)
.exec(session => session.setAll(“rand-ip-usr” → GenerateTestData.AnyIPAddress(),
“rand-state-cd” → GenerateTestData.AnyStateCode(),
“rand-txn” → GenerateTestData.AnyString(16),
“rand-username” → GenerateTestData.AnyString(100),
“rand-app_key” → GenerateTestData.AnyString(256)))
.exec(http(“OTPREQUEST”)
.post(URLs.authentication)
.header(“asp-ip”, HTTPParam.AspIp)
.header(“asp-id”, HTTPParam.AspId)
.header(“asp-auth”, HTTPParam.AspAuth)
.header(“ip-usr”, session => session(“rand-ip-usr”).as[String])
.header(“state-cd”, session => session(“rand-state-cd”).as[String])
.header(“txn”, session => session(“rand-txn”).as[String])
.body(StringBody("""
{
“action” : “OTPREQUEST”,
“username” : ${rand-username},
“app_key” : ${rand-app_key}
} “”"))
.check(status.is(200)))

At very low request rate itself, I am getting following error.

12:37:11.261 [ERROR] i.g.c.s.w.LogFileDataWriter$ - Crash on extraInfo serialization

java.lang.NullPointerException: null

at io.gatling.core.stats.writer.LogFileDataWriter$$anon$12.io$gatling$core$stats$writer$LogFileDataWriter$$anon$12$$$anonfun$3(LogFileDataWriter.scala:79)

at scala.collection.immutable.List.map(List.scala:277)

at io.gatling.core.stats.writer.LogFileDataWriter$$anon$12.serializeExtraInfo(LogFileDataWriter.scala:79)

at io.gatling.core.stats.writer.LogFileDataWriter$$anon$12.serialize(LogFileDataWriter.scala:95)

at io.gatling.core.stats.writer.LogFileDataWriter$$anon$12.serialize(LogFileDataWriter.scala:75)

at io.gatling.core.stats.writer.LogFileDataWriter.push(LogFileDataWriter.scala:178)

at io.gatling.core.stats.writer.LogFileDataWriter.onMessage(LogFileDataWriter.scala:192)

at io.gatling.core.stats.writer.LogFileDataWriter.onMessage(LogFileDataWriter.scala:136)

Any help would be appreciated.

BTW, I am using Gatling 2.2.5 on Linux.