jmeter 2.9不会打开我用jmeter 2.8构建的脚本

时间:2013-08-06 00:21:08

标签: jmeter jmeter-plugins

我有一个可以在2.8版本的jmeter中完美运行(打开并运行)的脚本。我刚刚下载了Jmeter 2.9,我无法打开这个脚本。

我在日志文件中收到以下错误,我似乎不明白DummySampler的问题是什么,它似乎是根据日志的错误来源。 我检查了2.9版本更改日志页面http://jmeter.apache.org/changes.html,但找不到任何相关内容。

我是Jmeter和Java的新手,感谢任何帮助!

2013/08/05 17:12:29 INFO  - jmeter.save.SaveService: All converter versions present and correct 
2013/08/05 17:12:30 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: kg.apc.jmeter.samplers.DummySampler : kg.apc.jmeter.samplers.DummySampler
---- Debugging information ----
message             : kg.apc.jmeter.samplers.DummySampler
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.samplers.DummySampler
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree[7]/hashTree[6]/kg.apc.jmeter.samplers.DummySampler
line number         : 416
------------------------------- : kg.apc.jmeter.samplers.DummySampler : kg.apc.jmeter.samplers.DummySampler
---- Debugging information ----
message             : kg.apc.jmeter.samplers.DummySampler
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.samplers.DummySampler
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree[7]/hashTree[6]/kg.apc.jmeter.samplers.DummySampler
line number         : 416
-------------------------------
message             : kg.apc.jmeter.samplers.DummySampler : kg.apc.jmeter.samplers.DummySampler
---- Debugging information ----
message             : kg.apc.jmeter.samplers.DummySampler
cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : kg.apc.jmeter.samplers.DummySampler
class               : org.apache.jorphan.collections.ListedHashTree
required-type       : org.apache.jorphan.collections.ListedHashTree
converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree[7]/hashTree[6]/kg.apc.jmeter.samplers.DummySampler
line number         : 416
-------------------------------
cause-exception     : com.thoughtworks.xstream.converters.ConversionException
cause-message       : kg.apc.jmeter.samplers.DummySampler : kg.apc.jmeter.samplers.DummySampler
first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:65)
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[7]/hashTree[6]/kg.apc.jmeter.samplers.DummySampler
line number         : 416
version             : 2.9 r1437961
------------------------------- 
2013/08/05 17:12:30 WARN  - jmeter.gui.action.Load: Unexpected error java.lang.Exception: Error in TestPlan - see log file
    at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:158)
    at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:113)
    at org.apache.jmeter.gui.action.Load.doAction(Load.java:92)
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
    at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
    at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:676)
    at java.awt.EventQueue$2.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

3 个答案:

答案 0 :(得分:6)

您使用第三方插件JMeter-plugins。

确保在lib / ext中添加了所需的jar及其在lib

中的依赖项

答案 1 :(得分:0)

我有同样的情况,jmx不会加载。只有错误是不同的,我得到:java.lang.ArrayIndexOutOfBoundsException

通过安装Java SE 1.7.0.67

解决了这个问题

答案 2 :(得分:-2)

您应该手动更改JMX,因为格式不同。你可以阅读JMX format