我正在尝试使用命令行在我的服务器上运行JMeter测试。我从我的Windows机器上连接ssh到rabbitMQ服务器,我在rabbitmq服务器上运行jmeter,我有想运行的jmx文件,但是当我运行像“jmeter -n -t server.jmx”这样的命令时“我得到这样的错误”NonGUIDriver中的错误java.lang.NullPointerException“
我经历了很多问题和答案,但没有一个能解决我的问题。我已将jar文件包含在lib / ext文件夹中。我已经检查了我的jmeter版本,比较我的Windows机器和Linux服务器,在.jmx测试文件等中搜索并替换HTTPSamplerProxy和HTTPSampler等。
这是我的“jmeter.log”文件:
2016/02/05 07:12:37 INFO - jmeter.save.SaveService: All converter versions present and correct
2016/02/05 07:12:37 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: com/rabbitmq/client/ShutdownSignalException : com/rabbitmq/client/ShutdownSignalException
---- Debugging information ----
message : com/rabbitmq/client/ShutdownSignalException
cause-exception : java.lang.NoClassDefFoundError
cause-message : com/rabbitmq/client/ShutdownSignalException
first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:100)
class : org.apache.jmeter.save.ScriptWrapper
required-type : com.zeroclue.jmeter.protocol.amqp.AMQPConsumer
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree/com.zeroclue.jmeter.protocol.amqp.AMQPConsumer
line number : 29
version : 2.8.20130705
-------------------------------
2016/02/05 07:12:37 ERROR - jmeter.JMeter: Error in NonGUIDriver java.lang.NullPointerException
at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:93)
at org.apache.jmeter.JMeter.runNonGui(JMeter.java:745)
at org.apache.jmeter.JMeter.startNonGui(JMeter.java:723)
at org.apache.jmeter.JMeter.start(JMeter.java:388)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.jmeter.NewDriver.main(NewDriver.java:216)
谢谢,