Random

JMeter Error in NonGUIDriver java.lang.NullPointerException

Was doing some JMeter testing today when I got this error.

./jmeter -n -t ~/test.jmx 
Error in NonGUIDriver java.lang.NullPointerException

I had a JMX file that I copied to a remote server where JMeter was installed, and running before.  But this time when I ran it I got the exception.  Seeing that it was a GUi (or non-GUI) issue with no context I figured it was a GUI issue.

Turns out it was not.  The JMX file referenced a class kg.apc.jmeter.threads.SteppingThreadGroup which is part of the Extras Set at JMeter Plugins.  So despite the exception stating that the source of the exception was in the NonGUIDiver class the problem was that the Extras library was not installed.  I copied the jar file into lib/ext directory and the load test ran fine after that.

9 thoughts on “JMeter Error in NonGUIDriver java.lang.NullPointerException”

  1. >> I copied the jar file into lib/ext directory and the load test ran fine after that.

    What exactly does that mean? Where is lib/ext directory one is supposed to put JMeterPlugins-Extras.jar ?

  2. I heard about JMX file but I don’t know the exact working of JMX file. My friend had shared me some site, visit http://www.koolchart.com

  3. I had the same issue. the problem was the version of the Jmeter on the remote server was 2.6 and the one with which the .jmx file was created was 2.8. So i installed a lower version and recreated the .jmx file moved to the remote server and all was fine 😀

    1. After Extras jar file is downloaded, you need place in lib/ext folder. lib is the major folder where your library files(jar) are located. It solved the issue.

      Tell us what error you are getting.

Leave a Reply to stepsalin Cancel reply

Your email address will not be published. Required fields are marked *