Com.thoughtworks.xstream.converters.ConversionExce
JMeter 4.0, executed for the first time on CentOS, enters the following command:
jmeter -n -t mytest.jmx -l 001.jtl
The following error occurred:
Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/fcy/apache-jmeter-4.0/bin/mytest.jmx', missing class com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message :
first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jorphan.collections.ListedHashTree
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree/kg.apc.jmeter.perfmon.PerfMonCollector
line number : 519
version : 4.0 r1823414
Solution:
lib\ext, put the following three files, and execute the above command again.
These three files can be downloaded from Baidu's network disk, or downloaded from the official website.