Reputation: 8962
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
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:
apt install openjdk-8-jdk
wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.5.tgz
tar xf apache-jmeter-5.5.tgz
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