Exception in thread "main" java.lang.ExceptionInInitializerError

any one got any idea about this error I am getting when running my gatling simulation

Exception in thread “main” java.lang.ExceptionInInitializerError

at uk.gov.hmcts.ccd.simulation.DMPTSimulation.(DMPTSimulation.scala:21)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at java.lang.Class.newInstance(Class.java:442)

at io.gatling.app.Runner.run0(Runner.scala:79)

at io.gatling.app.Runner.run(Runner.scala:64)

at io.gatling.app.Gatling$.start(Gatling.scala:63)

at io.gatling.app.Gatling$.fromMap(Gatling.scala:40)

at Engine$.delayedEndpoint$Engine$1(Engine.scala:12)

at Engine$delayedInit$body.apply(Engine.scala:4)

at scala.Function0.apply$mcV$sp(Function0.scala:34)

at scala.Function0.apply$mcV$sp$(Function0.scala:34)

at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)

at scala.App.$anonfun$main$1$adapted(App.scala:76)

at scala.collection.immutable.List.foreach(List.scala:389)

at scala.App.main(App.scala:76)

at scala.App.main$(App.scala:74)

at Engine$.main(Engine.scala:4)

at Engine.main(Engine.scala)

Caused by: feign.FeignException: status 404 reading ServiceAuthorisationApi#serviceToken(Map); content:

{“timestamp”:1538991988132,“status”:404,“error”:“Not Found”,“message”:“No message available”,“path”:"/lease"}

at feign.FeignException.errorStatus(FeignException.java:62)

at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:91)

at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:138)

at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)

at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)

at com.sun.proxy.$Proxy78.serviceToken(Unknown Source)

at uk.gov.hmcts.reform.authorisation.generators.ServiceAuthTokenGenerator.generate(ServiceAuthTokenGenerator.java:38)

at uk.gov.hmcts.reform.authorisation.generators.AutorefreshingJwtAuthTokenGenerator.generate(AutorefreshingJwtAuthTokenGenerator.java:44)

at uk.gov.hmcts.reform.authorisation.generators.BearerTokenGenerator.generate(BearerTokenGenerator.java:19)

at uk.gov.hmcts.ccd.util.CcdTokenGenerator$.generateGatewayS2SToken(CcdTokenGenerator.scala:42)

at uk.gov.hmcts.ccd.docstore.scenarios.GetDocumentBinary$.getDocumentBinaryDataByDocumentIDHttp(GetDocumentBinary.scala:22)

at uk.gov.hmcts.ccd.docstore.scenarios.GetDocumentBinary$.(GetDocumentBinary.scala:41)

at uk.gov.hmcts.ccd.docstore.scenarios.GetDocumentBinary$.(GetDocumentBinary.scala)

… 21 more

I am facing the same problem here.
In my case, I am facing this problem if I use feeder method in the script. If I remove all references to the feeder method, everything works well.
Here’s the complete error that I am getting:

“C:\Program Files\Java\jdk1.8.0_221\bin\java.exe” “-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2\lib\idea_rt.jar=34142:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2\bin” -Dfile.encoding=UTF-8 -classpath “C:\Program Files\Java\jdk1.8.0_221\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\rt.jar;C:\MyGatlingProjects\sampleproject-master\target\classes;C:\Users\Mishal.ivy2\cache\org.scala-lang\scala-library\jars\scala-library-2.12.9.jar;C:\Users\Mishal.ivy2\cache\org.scala-lang\scala-reflect\jars\scala-reflect-2.12.9.jar;C:\Users\Mishal.ivy2\cache\org.scala-lang\scala-library\srcs\scala-library-2.12.9-sources.jar;C:\Users\Mishal.ivy2\cache\org.scala-lang\scala-reflect\srcs\scala-reflect-2.12.9-sources.jar;C:\Users\Mishal.m2\repository\io\gatling\highcharts\gatling-charts-highcharts\3.2.0\gatling-charts-highcharts-3.2.0.jar;C:\Users\Mishal.m2\repository\org\scala-lang\scala-library\2.12.8\scala-library-2.12.8.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-charts\3.2.0\gatling-charts-3.2.0.jar;C:\Users\Mishal.m2\repository\com\tdunning\t-digest\3.1\t-digest-3.1.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-http-client\3.2.0\gatling-http-client-3.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-netty-util\3.2.0\gatling-netty-util-3.2.0.jar;C:\Users\Mishal.m2\repository\io\netty\netty-buffer\4.1.37.Final\netty-buffer-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-handler\4.1.37.Final\netty-handler-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-handler-proxy\4.1.37.Final\netty-handler-proxy-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec-socks\4.1.37.Final\netty-codec-socks-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-resolver-dns\4.1.37.Final\netty-resolver-dns-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-resolver\4.1.37.Final\netty-resolver-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec-dns\4.1.37.Final\netty-codec-dns-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-transport-native-epoll\4.1.37.Final\netty-transport-native-epoll-4.1.37.Final-linux-x86_64.jar;C:\Users\Mishal.m2\repository\io\netty\netty-transport-native-unix-common\4.1.37.Final\netty-transport-native-unix-common-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec-http2\4.1.37.Final\netty-codec-http2-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-tcnative-boringssl-static\2.0.25.Final\netty-tcnative-boringssl-static-2.0.25.Final.jar;C:\Users\Mishal.m2\repository\com\sun\activation\javax.activation\1.2.0\javax.activation-1.2.0.jar;C:\Users\Mishal.m2\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;C:\Users\Mishal.m2\repository\com\typesafe\scala-logging\scala-logging_2.12\3.9.2\scala-logging_2.12-3.9.2.jar;C:\Users\Mishal.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\Mishal.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-commons\3.2.0\gatling-commons-3.2.0.jar;C:\Users\Mishal.m2\repository\org\scala-lang\scala-reflect\2.12.8\scala-reflect-2.12.8.jar;C:\Users\Mishal.m2\repository\com\typesafe\config\1.3.4\config-1.3.4.jar;C:\Users\Mishal.m2\repository\io\suzaku\boopickle_2.12\1.3.1\boopickle_2.12-1.3.1.jar;C:\Users\Mishal.m2\repository\org\typelevel\spire-macros_2.12\0.16.2\spire-macros_2.12-0.16.2.jar;C:\Users\Mishal.m2\repository\com\softwaremill\quicklens\quicklens_2.12\1.4.12\quicklens_2.12-1.4.12.jar;C:\Users\Mishal.m2\repository\org\scala-lang\modules\scala-java8-compat_2.12\0.9.0\scala-java8-compat_2.12-0.9.0.jar;C:\Users\Mishal.m2\repository\com\eatthepath\fast-uuid\0.1\fast-uuid-0.1.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-app\3.2.0\gatling-app-3.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-core\3.2.0\gatling-core-3.2.0.jar;C:\Users\Mishal.m2\repository\com\typesafe\akka\akka-slf4j_2.12\2.5.23\akka-slf4j_2.12-2.5.23.jar;C:\Users\Mishal.m2\repository\org\simpleflatmapper\lightning-csv\7.0.0\lightning-csv-7.0.0.jar;C:\Users\Mishal.m2\repository\org\simpleflatmapper\sfm-util\7.0.0\sfm-util-7.0.0-jdk9.jar;C:\Users\Mishal.m2\repository\org\simpleflatmapper\sfm-util\7.0.0\sfm-util-7.0.0.jar;C:\Users\Mishal.m2\repository\com\github\ben-manes\caffeine\caffeine\2.7.0\caffeine-2.7.0.jar;C:\Users\Mishal.m2\repository\org\checkerframework\checker-qual\2.6.0\checker-qual-2.6.0.jar;C:\Users\Mishal.m2\repository\com\google\errorprone\error_prone_annotations\2.3.3\error_prone_annotations-2.3.3.jar;C:\Users\Mishal.m2\repository\io\pebbletemplates\pebble\3.0.10\pebble-3.0.10.jar;C:\Users\Mishal.m2\repository\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;C:\Users\Mishal.m2\repository\org\scala-lang\modules\scala-parser-combinators_2.12\1.1.2\scala-parser-combinators_2.12-1.1.2.jar;C:\Users\Mishal.m2\repository\com\github\scopt\scopt_2.12\3.7.1\scopt_2.12-3.7.1.jar;C:\Users\Mishal.m2\repository\io\gatling\jsonpath_2.12\0.7.0\jsonpath_2.12-0.7.0.jar;C:\Users\Mishal.m2\repository\net\sf\saxon\Saxon-HE\9.9.1-4\Saxon-HE-9.9.1-4.jar;C:\Users\Mishal.m2\repository\org\jodd\jodd-lagarto\5.0.13\jodd-lagarto-5.0.13.jar;C:\Users\Mishal.m2\repository\org\jodd\jodd-core\5.0.13\jodd-core-5.0.13.jar;C:\Users\Mishal.m2\repository\org\jodd\jodd-log\5.0.13\jodd-log-5.0.13.jar;C:\Users\Mishal.m2\repository\io\burt\jmespath-jackson\0.3.0\jmespath-jackson-0.3.0.jar;C:\Users\Mishal.m2\repository\io\burt\jmespath-core\0.3.0\jmespath-core-0.3.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-http\3.2.0\gatling-http-3.2.0.jar;C:\Users\Mishal.m2\repository\org\scala-lang\modules\scala-xml_2.12\1.2.0\scala-xml_2.12-1.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-jms\3.2.0\gatling-jms-3.2.0.jar;C:\Users\Mishal.m2\repository\javax\jms\javax.jms-api\2.0.1\javax.jms-api-2.0.1.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-jdbc\3.2.0\gatling-jdbc-3.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-redis\3.2.0\gatling-redis-3.2.0.jar;C:\Users\Mishal.m2\repository\net\debasishg\redisclient_2.12\3.10\redisclient_2.12-3.10.jar;C:\Users\Mishal.m2\repository\org\apache\commons\commons-pool2\2.6.0\commons-pool2-2.6.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-graphite\3.2.0\gatling-graphite-3.2.0.jar;C:\Users\Mishal.m2\repository\org\hdrhistogram\HdrHistogram\2.1.11\HdrHistogram-2.1.11.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-recorder\3.2.0\gatling-recorder-3.2.0.jar;C:\Users\Mishal.m2\repository\org\scala-lang\modules\scala-swing_2.12\2.1.1\scala-swing_2.12-2.1.1.jar;C:\Users\Mishal.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.9.1\jackson-databind-2.9.9.1.jar;C:\Users\Mishal.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;C:\Users\Mishal.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;C:\Users\Mishal.m2\repository\org\json4s\json4s-jackson_2.12\3.6.7\json4s-jackson_2.12-3.6.7.jar;C:\Users\Mishal.m2\repository\org\json4s\json4s-core_2.12\3.6.7\json4s-core_2.12-3.6.7.jar;C:\Users\Mishal.m2\repository\org\json4s\json4s-ast_2.12\3.6.7\json4s-ast_2.12-3.6.7.jar;C:\Users\Mishal.m2\repository\org\json4s\json4s-scalap_2.12\3.6.7\json4s-scalap_2.12-3.6.7.jar;C:\Users\Mishal.m2\repository\com\thoughtworks\paranamer\paranamer\2.8\paranamer-2.8.jar;C:\Users\Mishal.m2\repository\org\bouncycastle\bcpkix-jdk15on\1.62\bcpkix-jdk15on-1.62.jar;C:\Users\Mishal.m2\repository\org\bouncycastle\bcprov-jdk15on\1.62\bcprov-jdk15on-1.62.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec-http\4.1.37.Final\netty-codec-http-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-common\4.1.37.Final\netty-common-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-transport\4.1.37.Final\netty-transport-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec\4.1.37.Final\netty-codec-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\com\typesafe\akka\akka-actor_2.12\2.5.23\akka-actor_2.12-2.5.23.jar” Engine
Exception in thread “main” java.lang.ExceptionInInitializerError
at Engine$.delayedEndpoint$Engine$1(Engine.scala:7)
at Engine$delayedInit$body.apply(Engine.scala:4)
at scala.Function0.apply$mcV$sp(Function0.scala:39)
at scala.Function0.apply$mcV$sp$(Function0.scala:39)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
at scala.App.$anonfun$main$1$adapted(App.scala:80)
at scala.collection.immutable.List.foreach(List.scala:392)
at scala.App.main(App.scala:80)
at scala.App.main$(App.scala:78)
at Engine$.main(Engine.scala:4)
at Engine.main(Engine.scala)
Caused by: java.lang.NullPointerException
at io.gatling.commons.util.PathHelper$.url2path(PathHelper.scala:34)
at IDEPathHelper$.(IDEPathHelper.scala:7)
at IDEPathHelper$.(IDEPathHelper.scala)
… 11 more

Process finished with exit code 1

Your problem has nothing to do with feeders.

Caused by: java.lang.NullPointerException
at io.gatling.commons.util.PathHelper$.url2path(PathHelper.scala:34)
at IDEPathHelper$.(IDEPathHelper.scala:7)
at IDEPathHelper$.(IDEPathHelper.scala)

Check IDEPathHelper on line 7, you’ll see that it’s pretty obvious you have something wrong with your project structure, most likely you don’t have the gatling.conf file in your classpath.

Appreciate your response Stéphane but I dont know how to change it. Could you please tell me how to do that?
Also to add, if this was really the case, then why would Gatling run the script if I remove all the feeder method references? I should not allow it to run in that case as well right?

Warm Regards,
Mishal Alexander

My apologies, this is the complete error description in the console of the IDEA:

“C:\Program Files\Java\jdk1.8.0_221\jre\bin\java.exe” “-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2\lib\idea_rt.jar=34675:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2\bin” -Dfile.encoding=UTF-8 -classpath “C:\Program Files\Java\jdk1.8.0_221\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_221\jre\lib\rt.jar;C:\MyGatlingProjects\TheMercuryProject\target\test-classes;C:\MyGatlingProjects\TheMercuryProject\target\classes;C:\Users\Mishal.ivy2\cache\org.scala-lang\scala-library\jars\scala-library-2.12.9.jar;C:\Users\Mishal.ivy2\cache\org.scala-lang\scala-reflect\jars\scala-reflect-2.12.9.jar;C:\Users\Mishal.ivy2\cache\org.scala-lang\scala-library\srcs\scala-library-2.12.9-sources.jar;C:\Users\Mishal.ivy2\cache\org.scala-lang\scala-reflect\srcs\scala-reflect-2.12.9-sources.jar;C:\Users\Mishal.m2\repository\io\gatling\highcharts\gatling-charts-highcharts\3.2.0\gatling-charts-highcharts-3.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-charts\3.2.0\gatling-charts-3.2.0.jar;C:\Users\Mishal.m2\repository\com\tdunning\t-digest\3.1\t-digest-3.1.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-http-client\3.2.0\gatling-http-client-3.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-netty-util\3.2.0\gatling-netty-util-3.2.0.jar;C:\Users\Mishal.m2\repository\io\netty\netty-buffer\4.1.37.Final\netty-buffer-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-handler\4.1.37.Final\netty-handler-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-handler-proxy\4.1.37.Final\netty-handler-proxy-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec-socks\4.1.37.Final\netty-codec-socks-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-resolver-dns\4.1.37.Final\netty-resolver-dns-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-resolver\4.1.37.Final\netty-resolver-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec-dns\4.1.37.Final\netty-codec-dns-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-transport-native-epoll\4.1.37.Final\netty-transport-native-epoll-4.1.37.Final-linux-x86_64.jar;C:\Users\Mishal.m2\repository\io\netty\netty-transport-native-unix-common\4.1.37.Final\netty-transport-native-unix-common-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec-http2\4.1.37.Final\netty-codec-http2-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-tcnative-boringssl-static\2.0.25.Final\netty-tcnative-boringssl-static-2.0.25.Final.jar;C:\Users\Mishal.m2\repository\com\sun\activation\javax.activation\1.2.0\javax.activation-1.2.0.jar;C:\Users\Mishal.m2\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;C:\Users\Mishal.m2\repository\com\typesafe\scala-logging\scala-logging_2.12\3.9.2\scala-logging_2.12-3.9.2.jar;C:\Users\Mishal.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\Mishal.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-commons\3.2.0\gatling-commons-3.2.0.jar;C:\Users\Mishal.m2\repository\org\scala-lang\scala-reflect\2.12.8\scala-reflect-2.12.8.jar;C:\Users\Mishal.m2\repository\com\typesafe\config\1.3.4\config-1.3.4.jar;C:\Users\Mishal.m2\repository\io\suzaku\boopickle_2.12\1.3.1\boopickle_2.12-1.3.1.jar;C:\Users\Mishal.m2\repository\org\typelevel\spire-macros_2.12\0.16.2\spire-macros_2.12-0.16.2.jar;C:\Users\Mishal.m2\repository\com\softwaremill\quicklens\quicklens_2.12\1.4.12\quicklens_2.12-1.4.12.jar;C:\Users\Mishal.m2\repository\org\scala-lang\modules\scala-java8-compat_2.12\0.9.0\scala-java8-compat_2.12-0.9.0.jar;C:\Users\Mishal.m2\repository\com\eatthepath\fast-uuid\0.1\fast-uuid-0.1.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-app\3.2.0\gatling-app-3.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-core\3.2.0\gatling-core-3.2.0.jar;C:\Users\Mishal.m2\repository\com\typesafe\akka\akka-slf4j_2.12\2.5.23\akka-slf4j_2.12-2.5.23.jar;C:\Users\Mishal.m2\repository\org\simpleflatmapper\lightning-csv\7.0.0\lightning-csv-7.0.0.jar;C:\Users\Mishal.m2\repository\org\simpleflatmapper\sfm-util\7.0.0\sfm-util-7.0.0-jdk9.jar;C:\Users\Mishal.m2\repository\org\simpleflatmapper\sfm-util\7.0.0\sfm-util-7.0.0.jar;C:\Users\Mishal.m2\repository\com\github\ben-manes\caffeine\caffeine\2.7.0\caffeine-2.7.0.jar;C:\Users\Mishal.m2\repository\org\checkerframework\checker-qual\2.6.0\checker-qual-2.6.0.jar;C:\Users\Mishal.m2\repository\com\google\errorprone\error_prone_annotations\2.3.3\error_prone_annotations-2.3.3.jar;C:\Users\Mishal.m2\repository\io\pebbletemplates\pebble\3.0.10\pebble-3.0.10.jar;C:\Users\Mishal.m2\repository\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;C:\Users\Mishal.m2\repository\org\scala-lang\modules\scala-parser-combinators_2.12\1.1.2\scala-parser-combinators_2.12-1.1.2.jar;C:\Users\Mishal.m2\repository\com\github\scopt\scopt_2.12\3.7.1\scopt_2.12-3.7.1.jar;C:\Users\Mishal.m2\repository\io\gatling\jsonpath_2.12\0.7.0\jsonpath_2.12-0.7.0.jar;C:\Users\Mishal.m2\repository\net\sf\saxon\Saxon-HE\9.9.1-4\Saxon-HE-9.9.1-4.jar;C:\Users\Mishal.m2\repository\org\jodd\jodd-lagarto\5.0.13\jodd-lagarto-5.0.13.jar;C:\Users\Mishal.m2\repository\org\jodd\jodd-core\5.0.13\jodd-core-5.0.13.jar;C:\Users\Mishal.m2\repository\org\jodd\jodd-log\5.0.13\jodd-log-5.0.13.jar;C:\Users\Mishal.m2\repository\io\burt\jmespath-jackson\0.3.0\jmespath-jackson-0.3.0.jar;C:\Users\Mishal.m2\repository\io\burt\jmespath-core\0.3.0\jmespath-core-0.3.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-http\3.2.0\gatling-http-3.2.0.jar;C:\Users\Mishal.m2\repository\org\scala-lang\modules\scala-xml_2.12\1.2.0\scala-xml_2.12-1.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-jms\3.2.0\gatling-jms-3.2.0.jar;C:\Users\Mishal.m2\repository\javax\jms\javax.jms-api\2.0.1\javax.jms-api-2.0.1.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-jdbc\3.2.0\gatling-jdbc-3.2.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-redis\3.2.0\gatling-redis-3.2.0.jar;C:\Users\Mishal.m2\repository\net\debasishg\redisclient_2.12\3.10\redisclient_2.12-3.10.jar;C:\Users\Mishal.m2\repository\org\apache\commons\commons-pool2\2.6.0\commons-pool2-2.6.0.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-graphite\3.2.0\gatling-graphite-3.2.0.jar;C:\Users\Mishal.m2\repository\org\hdrhistogram\HdrHistogram\2.1.11\HdrHistogram-2.1.11.jar;C:\Users\Mishal.m2\repository\io\gatling\gatling-recorder\3.2.0\gatling-recorder-3.2.0.jar;C:\Users\Mishal.m2\repository\org\scala-lang\modules\scala-swing_2.12\2.1.1\scala-swing_2.12-2.1.1.jar;C:\Users\Mishal.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.9.1\jackson-databind-2.9.9.1.jar;C:\Users\Mishal.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;C:\Users\Mishal.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;C:\Users\Mishal.m2\repository\org\json4s\json4s-jackson_2.12\3.6.7\json4s-jackson_2.12-3.6.7.jar;C:\Users\Mishal.m2\repository\org\json4s\json4s-core_2.12\3.6.7\json4s-core_2.12-3.6.7.jar;C:\Users\Mishal.m2\repository\org\json4s\json4s-ast_2.12\3.6.7\json4s-ast_2.12-3.6.7.jar;C:\Users\Mishal.m2\repository\org\json4s\json4s-scalap_2.12\3.6.7\json4s-scalap_2.12-3.6.7.jar;C:\Users\Mishal.m2\repository\com\thoughtworks\paranamer\paranamer\2.8\paranamer-2.8.jar;C:\Users\Mishal.m2\repository\org\bouncycastle\bcpkix-jdk15on\1.62\bcpkix-jdk15on-1.62.jar;C:\Users\Mishal.m2\repository\org\bouncycastle\bcprov-jdk15on\1.62\bcprov-jdk15on-1.62.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec-http\4.1.37.Final\netty-codec-http-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-common\4.1.37.Final\netty-common-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-transport\4.1.37.Final\netty-transport-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\io\netty\netty-codec\4.1.37.Final\netty-codec-4.1.37.Final.jar;C:\Users\Mishal.m2\repository\com\typesafe\akka\akka-actor_2.12\2.5.23\akka-actor_2.12-2.5.23.jar;C:\Users\Mishal.m2\repository\org\scala-lang\scala-library\2.12.9\scala-library-2.12.9.jar” Engine
Choose a simulation number:
[0] ScriptEnhanced
[1] simulations.ScriptEnhanced
[2] test.scala.myGatlingScripts.firstScript
0
Select run description (optional)
uiop
09:59:42.472 [ERROR] i.g.a.Gatling$ - Run crashed
java.lang.UnsupportedClassVersionError: org/simpleflatmapper/util/ParallelReader has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.simpleflatmapper.lightningcsv.CsvParser.dsl(CsvParser.java:127)
at org.simpleflatmapper.lightningcsv.CsvParser.separator(CsvParser.java:107)
at io.gatling.core.feeder.SeparatedValuesParser$.stream(SeparatedValuesParser.scala:44)
at io.gatling.core.feeder.SeparatedValuesParser$.$anonfun$parse$1(SeparatedValuesParser.scala:39)
at io.gatling.commons.util.Io$.withCloseable(Io.scala:115)
at io.gatling.core.feeder.SeparatedValuesParser$.parse(SeparatedValuesParser.scala:38)
at io.gatling.core.feeder.SeparatedValuesFeederSource.applyBatch$1(FeederSource.scala:130)
at io.gatling.core.feeder.SeparatedValuesFeederSource.feeder(FeederSource.scala:159)
at io.gatling.core.feeder.SourceFeederBuilder.apply(FeederBuilder.scala:76)
at io.gatling.core.feeder.SourceFeederBuilder.apply(FeederBuilder.scala:45)
at io.gatling.core.action.builder.FeedBuilder.newSingletonFeed(FeedBuilder.scala:38)
at io.gatling.core.action.builder.FeedBuilder.$anonfun$build$1(FeedBuilder.scala:43)
at scala.collection.mutable.MapLike.getOrElseUpdate(MapLike.scala:209)
at scala.collection.mutable.MapLike.getOrElseUpdate$(MapLike.scala:206)
at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:82)
at io.gatling.core.action.builder.FeedBuilder.build(FeedBuilder.scala:43)
at io.gatling.core.structure.BuildAction.$anonfun$build$1(BuildAction.scala:25)
at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126)
at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122)
at scala.collection.immutable.List.foldLeft(List.scala:89)
at io.gatling.core.structure.BuildAction.build(BuildAction.scala:24)
at io.gatling.core.structure.BuildAction.build$(BuildAction.scala:23)
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.$anonfun$scenarios$1(Simulation.scala:192)
at scala.collection.immutable.List.map(List.scala:286)
at io.gatling.core.scenario.SimulationParams.scenarios(Simulation.scala:192)
at io.gatling.app.Runner.run0(Runner.scala:91)
at io.gatling.app.Runner.run(Runner.scala:60)
at io.gatling.app.Gatling$.start(Gatling.scala:73)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:41)
at Engine$.delayedEndpoint$Engine$1(Engine.scala:11)
at Engine$delayedInit$body.apply(Engine.scala:4)
at scala.Function0.apply$mcV$sp(Function0.scala:39)
at scala.Function0.apply$mcV$sp$(Function0.scala:39)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
at scala.App.$anonfun$main$1$adapted(App.scala:80)
at scala.collection.immutable.List.foreach(List.scala:392)
at scala.App.main(App.scala:80)
at scala.App.main$(App.scala:78)
at Engine$.main(Engine.scala:4)
at Engine.main(Engine.scala)
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/simpleflatmapper/util/ParallelReader has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.simpleflatmapper.lightningcsv.CsvParser.dsl(CsvParser.java:127)
at org.simpleflatmapper.lightningcsv.CsvParser.separator(CsvParser.java:107)
at io.gatling.core.feeder.SeparatedValuesParser$.stream(SeparatedValuesParser.scala:44)
at io.gatling.core.feeder.SeparatedValuesParser$.$anonfun$parse$1(SeparatedValuesParser.scala:39)
at io.gatling.commons.util.Io$.withCloseable(Io.scala:115)
at io.gatling.core.feeder.SeparatedValuesParser$.parse(SeparatedValuesParser.scala:38)
at io.gatling.core.feeder.SeparatedValuesFeederSource.applyBatch$1(FeederSource.scala:130)
at io.gatling.core.feeder.SeparatedValuesFeederSource.feeder(FeederSource.scala:159)
at io.gatling.core.feeder.SourceFeederBuilder.apply(FeederBuilder.scala:76)
at io.gatling.core.feeder.SourceFeederBuilder.apply(FeederBuilder.scala:45)
at io.gatling.core.action.builder.FeedBuilder.newSingletonFeed(FeedBuilder.scala:38)
at io.gatling.core.action.builder.FeedBuilder.$anonfun$build$1(FeedBuilder.scala:43)
at scala.collection.mutable.MapLike.getOrElseUpdate(MapLike.scala:209)
at scala.collection.mutable.MapLike.getOrElseUpdate$(MapLike.scala:206)
at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:82)
at io.gatling.core.action.builder.FeedBuilder.build(FeedBuilder.scala:43)
at io.gatling.core.structure.BuildAction.$anonfun$build$1(BuildAction.scala:25)
at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126)
at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122)
at scala.collection.immutable.List.foldLeft(List.scala:89)
at io.gatling.core.structure.BuildAction.build(BuildAction.scala:24)
at io.gatling.core.structure.BuildAction.build$(BuildAction.scala:23)
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.$anonfun$scenarios$1(Simulation.scala:192)
at scala.collection.immutable.List.map(List.scala:286)
at io.gatling.core.scenario.SimulationParams.scenarios(Simulation.scala:192)
at io.gatling.app.Runner.run0(Runner.scala:91)
at io.gatling.app.Runner.run(Runner.scala:60)
at io.gatling.app.Gatling$.start(Gatling.scala:73)
at io.gatling.app.Gatling$.fromMap(Gatling.scala:41)
at Engine$.delayedEndpoint$Engine$1(Engine.scala:11)
at Engine$delayedInit$body.apply(Engine.scala:4)
at scala.Function0.apply$mcV$sp(Function0.scala:39)
at scala.Function0.apply$mcV$sp$(Function0.scala:39)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
at scala.App.$anonfun$main$1$adapted(App.scala:80)
at scala.collection.immutable.List.foreach(List.scala:392)
at scala.App.main(App.scala:80)
at scala.App.main$(App.scala:78)
at Engine$.main(Engine.scala:4)
at Engine.main(Engine.scala)

Process finished with exit code 1

Please let me know if you require any further information

This looks like an IntelliJ bug: it didn’t add the correct artifact in the classpath:

C:\Users\Mishal.m2\repository\org\simpleflatmapper\lightning-csv\7.0.0\lightning-csv-7.0.0.jar;C:\Users\Mishal.m2\repository\org\simpleflatmapper\sfm-util\7.0.0\sfm-util-7.0.0-jdk9.jar;

Hi I’m facing the same error here:

Exception in thread “main” java.lang.ExceptionInInitializerError
at Engine$.delayedEndpoint$Engine$1(Engine.scala:7)
at Engine$delayedInit$body.apply(Engine.scala:4)
at scala.Function0.apply$mcV$sp(Function0.scala:34)
at scala.Function0.apply$mcV$sp$(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App.$anonfun$main$1$adapted(App.scala:76)
at scala.collection.immutable.List.foreach(List.scala:388)
at scala.App.main(App.scala:76)
at scala.App.main$(App.scala:74)
at Engine$.main(Engine.scala:4)
at Engine.main(Engine.scala)
Caused by: java.lang.NullPointerException
at io.gatling.commons.util.PathHelper$.url2path(PathHelper.scala:34)
at IDEPathHelper$.(IDEPathHelper.scala:7)
at IDEPathHelper$.(IDEPathHelper.scala)
… 11 more

Process finished with exit code 1

I need help with it please

missing gatling.conf file

Hi … is there any article i can follow to help me find the missing gatling.conf file and add it … i;m totally lost and tried different ways to fix the error … i’m able to run the scala file separatelt from terminal but it is giving me this error from intelliJ

https://gatling.io/docs/current/installation/
https://gatling.io/docs/current/extensions/maven_plugin/#maven-plugin
https://github.com/gatling/gatling-maven-plugin-demo
https://github.com/gatling/gatling-maven-plugin-demo/tree/master/src/test/resources

Than you … I tried to import the gatling-maven-plugin-demo to Intellij and it worked fine … but when I try to create a maven project from the terminal
mvn archetype*:*generate , and import it to IntelliJ , it gives me exception

Indeed, the gatling.conf file is missing from the archetype.
We’re going to add it, and revisit IDEPathHelper.

I had the same issue. Not sure if the stracktrace is 100% identical, but I get this when I use the Engine class provided with the Gatling Maven archetype to run/debug the simulations from your IDE (IntelliJ in my case). I was able to solve this in a very simple way using this solution I found on StackOverflow

So these are the IntelliJ instructions: Marking the scala directory in your project structure as ‘Test Sources Root’

Right click the ‘scala’ folder under ‘src/test/’ > Mark directory as > Test Sources Root. It should turn green now. Retry running your simulation(s). It worked now for me.