JMeter 3.2无法初始化类org.apache.jmeter.extractor.json.jsonpath.JSONManager

时间:2017-07-26 20:15:31

标签: jmeter jmeter-plugins jmeter-3.2

我正在使用JMeter 3.2,其中一个请求JSON Exttractor variable nameSenderIdJSON Path Expressions$[0].selectedSender.id我在下面看到异常运行测试,有人可以帮我解决这个问题吗?

2017-07-26 14:43:34,902 ERROR o.a.j.JMeter: Uncaught exception: 
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.extractor.json.jsonpath.JSONManager
    at org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor$1.initialValue(JSONPostProcessor.java:60) ~[ApacheJMeter_components.jar:3.2 r1790748]
    at org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor$1.initialValue(JSONPostProcessor.java:57) ~[ApacheJMeter_components.jar:3.2 r1790748]
    at java.lang.ThreadLocal.setInitialValue(Unknown Source) ~[?:1.8.0_111]
    at java.lang.ThreadLocal.get(Unknown Source) ~[?:1.8.0_111]
    at org.apache.jmeter.extractor.json.jsonpath.JSONPostProcessor.threadFinished(JSONPostProcessor.java:242) ~[ApacheJMeter_components.jar:3.2 r1790748]
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:679) ~[ApacheJMeter_core.jar:3.2 r1790748]
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:996) ~[jorphan.jar:3.2 r1790748]
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:997) ~[jorphan.jar:3.2 r1790748]
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:997) ~[jorphan.jar:3.2 r1790748]
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:978) ~[jorphan.jar:3.2 r1790748]
    at org.apache.jmeter.threads.JMeterThread.threadFinished(JMeterThread.java:651) ~[ApacheJMeter_core.jar:3.2 r1790748]
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:310) ~[ApacheJMeter_core.jar:3.2 r1790748]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]

1 个答案:

答案 0 :(得分:1)

如果您使用的jmeter版本高于3.0需要安装插件

https://jmeter-plugins.org/?search=jpgc-json