开启脚本时出现jmeter错误
好的 - 我没有把这个测试从一台机器移到另一台机器上。这个测试是在我今天试图打开它的地方创建和保存的。昨天 - 我做了一些改变并保存下来。现在,我打开并获取错误 - 请参阅日志文件。开启脚本时出现jmeter错误
我一直在寻找答案,但我发现的唯一一件事涉及将测试从一台机器移到另一台机器。这看起来像是简单的损坏。两个问题 - 1.任何人都曾经看到过,并知道是什么造成的? 2.我拧了吗?我必须完全重做这个测试吗?
不知道这是否事项在这种情况下,但是:
Windows 7的 的JMeter 2.9
这里是日志信息:
2013/02/21 14:54:53 INFO - jmeter.gui.action.Load: Loading file: C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin\MC_multi_thread.jmx
2013/02/21 14:54:53 INFO - jmeter.services.FileServer: Set new base='C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin'
2013/02/21 14:54:53 INFO - jmeter.services.FileServer: Set new base='C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin'
2013/02/21 14:55:40 INFO - jmeter.gui.action.Load: Loading file: C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin\MC_Multi_Thread02.jmx
2013/02/21 14:55:40 INFO - jmeter.services.FileServer: Set new base='C:\Users\jcraig\Desktop\Tools\jmeter\apache-jmeter-2.9\apache-jmeter-2.9\bin'
2013/02/21 14:55:40 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
---- Debugging information ----
message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
cause-exception : com.thoughtworks.xstream.io.StreamException
cause-message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
class : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
required-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
converter-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerBaseConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[4]/HTTPSamplerProxy[16]
line number : 7282
class[1] : org.apache.jorphan.collections.ListedHashTree
converter-type[1] : org.apache.jmeter.save.converters.HashTreeConverter
------------------------------- : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
---- Debugging information ----
message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
cause-exception : com.thoughtworks.xstream.io.StreamException
cause-message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
class : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
required-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
converter-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerBaseConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[4]/HTTPSamplerProxy[16]
line number : 7282
class[1] : org.apache.jorphan.collections.ListedHashTree
converter-type[1] : org.apache.jmeter.save.converters.HashTreeConverter
-------------------------------
message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
---- Debugging information ----
message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
cause-exception : com.thoughtworks.xstream.io.StreamException
cause-message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
class : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
required-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
converter-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerBaseConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[4]/HTTPSamplerProxy[16]
line number : 7282
class[1] : org.apache.jorphan.collections.ListedHashTree
converter-type[1] : org.apache.jmeter.save.converters.HashTreeConverter
-------------------------------
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24 : : no more data available - expected end tags </stringProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <stringProp> from line 7281 and start tag <HTTPSamplerProxy> from line 7257 and start tag <hashTree> from line 6253 and start tag <hashTree> from line 6191 and start tag <hashTree> from line 13 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</stringProp>\n <stringProp... @7282:24
first-jmeter-class : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:65)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[5]/hashTree[4]/HTTPSamplerProxy[16]
line number : 7282
version : 2.9 r1437961
-------------------------------
2013/02/21 14:55:40 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.LoadRecentProject.doAction(LoadRecentProject.java:68)
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:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
感谢有这方面的信息!
Jamie
看来你的文件已损坏。
尝试在xml编辑器中打开它以查看它是否正确。
检查磁盘空间或磁盘问题。保存期间你有没有崩溃?
您可以尝试手动添加标签的一部分以获取部分标签,也许您需要删除最后一个xml节点。
保存期间必须有错误。当我以XML打开时,我可以看到缺少的标签。谢谢! – 2013-02-25 16:08:19
我很高兴我的帮助,所以这个答案对别人很有用,你应该接受它,并upvote :) – 2013-02-25 20:20:41
这是一个快速的方法来bonify您的损坏的测试jmx文件。
- 转到您的JMeter的目录,并打开jmeter.log文件
-
介绍最新行rapresents的最后一个错误JMeter的记录,你必须要找到这样一个块:
----调试信息---- message:com.atlantbh.jmeter.plugins.rest.RestSampler cause-exception:com.thoughtworks.xstream.mapper.CannotResolveClassException cause-message:com.atlantbh.jmeter.plugins.rest.RestSampler class :org.apache.jorphan.collections.ListedHashTree 必需类型:org.apache.jorphan.collections.ListedHashTree 转换器类型:org.apache.jmeter.save.converters.HashTreeConverter 路径:/ jmeterTestPlan/hashTree/hashTree/hashTree [3]/hashTree [3]/com.atlantbh.jmeter.plugins.rest。RestSampler 行号:950
用文本编辑器打开JMX损坏的文件,找到的代码损坏线(在上面的例子中损坏的线路是950)
- 从
<tag.name>
删除整个标签到</tag.name>
(或者,如果你足够多的熟练尝试冲浪成子标签,找到了这个错误并修复它) - 负荷将编辑好的文件以不同的名称为JMeter的
- 如果错误仍然存在,请重复步骤1(您将找到要移除的新标签)
这也适用于如果你有不同的插件版本比原来,它添加/删除标签,Jmeter窒息。 – Renee 2017-12-04 22:25:59
我有同样的情况,jmx不会加载。只有错误是不同的,我得到:java.lang.ArrayIndexOutOfBoundsException
这是固定通过安装的Java SE 1.7.0.67
尝试使用JMeter的2.13测试时,我们遇到了类似的问题。这通过添加一些JMeter插件来解决。
在我们的例子中,我们需要添加“JMeterPlugins-标准”罐子中的lib/ext文件夹在测试kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGui
(OR kg.apc.jmeter.vizualizers.CorrectedResultCollector
)使用。
此外,我们需要在lib/junit文件夹中添加jmeter-plugins-1.0.0
jar文件,用于com.atlantbh.jmeter.plugins.rest.gui.RestGui
(或com.atlantbh.jmeter.plugins.rest.RestSampler
)的用法。
在这种情况下,您需要在测试中查找行7282,以查看它缺少的内容并为其添加相关插件。
由于某些原因,这些jar文件不包含在默认的jmeter下载中。
希望有所帮助。
请检查您的.jmx文件是否有一些代码被删除.... 我正面临同样的问题......但在查看我的.jmx文件后,我看到有一些代码被我的团队成员删除.. 。
按照以下步骤
去下面的链接 https://jmeter-plugins.org/downloads/all/ 并添加插件管理你的JMeter
重新启动的JMeter
- 添加所需的点击插件“选项 - >插件管理器”
- 重新启动的JMeter
我认为它可以解决您的问题
什么可能的问题一直,如果你感动它从一台机器到另一台机器? – yochannah 2013-07-22 08:42:54