Matt
Matt

Reputation: 8962

JMeter NonGUIDriver error in non-GUI mode

When I run JMeter test suite jmeter -n -t test.jmx in non-GUI mode on Ubuntu server, I get an error:

Error in NonGUIDriver com.thoughtworks.xstream.security.ForbiddenClassException: org.apache.jmeter.save.ScriptWrapper

What does this error mean? I installed JMeter on Ubuntu by command sudo apt install jmeter

Upvotes: 0

Views: 2876

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

Most probably you're trying to open test plan created in more recent JMeter version with a very old JMeter from Ubuntu repositories.

So remove the installation by apt and follow "normal" JMeter installation procedure:

  1. Install Java version not lower than 8, i.e. apt install openjdk-8-jdk
  2. Download JMeter 5.5, i.e. wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.5.tgz
  3. Unpack it, i.e. tar xf apache-jmeter-5.5.tgz
  4. Launch it pushd apache-jmeter-5.5/bin/ && ./jmeter.sh

The error should go away (at least this one)

More information: JMeter Installation: How to Get Started

Upvotes: 6

Related Questions