NullPointerException while running scenario

Hi all,

I’m getting this exception while running scenario:

Caused by: java.lang.NullPointerException
at io.gatling.http.protocol.HttpProtocol$.apply(HttpProtocol.scala:76)
at io.gatling.http.protocol.HttpProtocolBuilder$.apply(HttpProtocolBuilder.scala:47)
at io.gatling.http.HttpDsl.http(HttpDsl.scala:38)
at io.gatling.http.HttpDsl.http$(HttpDsl.scala:38)
at io.gatling.http.Predef$.http(Predef.scala:19)
at com.test.UIStressTest.(UIStressTest.scala:31)

Fails when trying to instantiate http object

val httpProtocol = http
.acceptHeader(“application/json, text/plain, /”)
.acceptEncodingHeader(“gzip, deflate”)
.userAgentHeader(“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0”)

This is snipet from gatling source code, fails on bolded line:

def apply(configuration: GatlingConfiguration): HttpProtocol =
baseUrls = Nil,
warmUpUrl = configuration.http.warmUpUrl,

Any suggestions what can possibly go wrong?

Thank you,

It seems that this implicit configuration: GatlingConfiguration is null for some reason :confused:

I used maven archetype project but added other dependencies to the simulation so I can call custom testing functions that we developed from business side, maybe they are clashing :?