java.lang.NullPointerException: host

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.NullPointerException: host
at org.asynchttpclient.util.Assertions.assertNotNull(Assertions.java:23)
at org.asynchttpclient.uri.Uri.(Uri.java:65)
at org.asynchttpclient.uri.Uri.create(Uri.java:38)
at org.asynchttpclient.uri.Uri.create(Uri.java:31)
at io.gatling.http.protocol.HttpProtocol.io$gatling$http$protocol$HttpProtocol$$$anonfun$3(HttpProtocol.scala:145)
at io.gatling.http.protocol.HttpProtocol$lambda$2.apply(HttpProtocol.scala:145)
at io.gatling.http.protocol.HttpProtocol$lambda$2.apply(HttpProtocol.scala:145)
at io.gatling.http.protocol.HttpProtocol.makeAbsoluteHttpUri(HttpProtocol.scala:155)
at io.gatling.http.request.builder.RequestExpressionBuilder.makeAbsolute(RequestExpressionBuilder.scala:60)
at io.gatling.http.request.builder.RequestExpressionBuilder.(RequestExpressionBuilder.scala:65)
at io.gatling.http.request.builder.HttpRequestExpressionBuilder.(HttpRequestExpressionBuilder.scala:37)
at io.gatling.http.action.sync.HttpRequestActionBuilder.build(HttpRequestActionBuilder.scala:34)
at io.gatling.core.structure.StructureBuilder$class.io$gatling$core$structure$StructureBuilder$class$$$anonfun$1(StructureBuilder.scala:34)
at io.gatling.core.structure.StructureBuilder$class$lambda$$build$1.apply(StructureBuilder.scala:33)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
at io.gatling.core.structure.StructureBuilder$class.build(StructureBuilder.scala:33)
at io.gatling.core.structure.ChainBuilder.build(ChainBuilder.scala:30)
at io.gatling.core.action.builder.LoopBuilder.build(LoopBuilder.scala:44)
at io.gatling.core.structure.StructureBuilder$class.io$gatling$core$structure$StructureBuilder$class$$$anonfun$1(StructureBuilder.scala:34)
at io.gatling.core.structure.StructureBuilder$class$lambda$$build$1.apply(StructureBuilder.scala:33)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
at io.gatling.core.structure.StructureBuilder$class.build(StructureBuilder.scala:33)
at io.gatling.core.structure.ScenarioBuilder.build(ScenarioBuilder.scala:38)
at io.gatling.core.structure.PopulationBuilder.build(ScenarioBuilder.scala:101)
at io.gatling.core.scenario.SimulationParams.io$gatling$core$scenario$SimulationParams$$$anonfun$13(Simulation.scala:169)
at io.gatling.core.scenario.SimulationParams$lambda$$scenarios$1.apply(Simulation.scala:169)
at io.gatling.app.Gatling.run(Gatling.scala:102)
at io.gatling.app.Gatling.runIfNecessary(Gatling.scala:75)
at io.gatling.app.Gatling.start(Gatling.scala:65)
at io.gatling.app.Gatling$.start(Gatling.scala:57)
at io.gatling.app.Gatling$.fromArgs(Gatling.scala:49)
at io.gatling.app.Gatling$.main(Gatling.scala:43)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.