Getting error " null pointer expection"

Hi,
This is Nivedita Rawat from Credit saison ,i am exploring the gatling open source in my real time scenario for rest assured apis. so getting one error while running the engine class.
“Caused by: java.lang.NullPointerException: Cannot invoke “java.net.URL.toURI()” because the return value of “java.lang.ClassLoader.getResource(String)” is null
at IDEPathHelper$.(IDEPathHelper.scala:5)”
I have used the scala as a programming language

Can u please help me how to resolve this?

Hi,

I have used the scala as a programming language

First thing first, you should go with Gatling Java and not Gatling Scala, unless you’re a Scala developer.

Then:

  • make sure you’re using the latest Gatling version
  • make sure your project has the same set up as our official samples (I’m pretty sure that’s not the case as line 5 in IDEPathHelper.scala is an empty line.

I used the scala only,but its working fine previously can u help to guide me?

I used the scala only

Why?
You don’t seem to be a Scala developer, otherwise you would be able to troubleshoot this kind of issues yourself.
You would save lots of trouble if you were going with Java.

yes i am new to scala, can you have any steps for troubleshoot

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.