JMeter jmx文件已损坏

时间:2014-06-03 10:40:21

标签: apache jmeter

我一直在jMeter制作测试计划,保存它,现在无法打开它。事实证明.jmx文件已损坏。这是错误日志:

---- Debugging information ----
message             :  : no more data available - expected end tags </intProp></ConstantThroughputTimer></hashTree></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <intProp> from line 464 and start tag <ConstantThroughputTimer> from line 463 and start tag <hashTree> from line 429 and start tag <hashTree> from line 387 and start tag <hashTree> from line 35 and start tag <hashTree> from line 19 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</intProp>\n              <doubleProp... @465:26
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : no more data available - expected end tags </intProp></ConstantThroughputTimer></hashTree></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <intProp> from line 464 and start tag <ConstantThroughputTimer> from line 463 and start tag <hashTree> from line 429 and start tag <hashTree> from line 387 and start tag <hashTree> from line 35 and start tag <hashTree> from line 19 and start tag <hashTree> from line 3 and start tag <jmeterTestPlan> from line 2, parser stopped on TEXT seen ...</intProp>\n              <doubleProp... @465:26
class               : org.apache.jmeter.timers.ConstantThroughputTimer
required-type       : org.apache.jmeter.timers.ConstantThroughputTimer
converter-type      : org.apache.jmeter.save.converters.TestElementConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[10]/hashTree/ConstantThroughputTimer
line number         : 465
class[1]            : org.apache.jorphan.collections.ListedHashTree
converter-type[1]   : org.apache.jmeter.save.converters.HashTreeConverter

所以我检查了jmx文件,果然,就在ConstantThroughputTimer之后,缺少配置的下半部分。奇怪的!不知道为什么会这样。 有没有其他人经历过这个或知道如何解决这个问题,所以这不会再发生了?

作为参考,我在Windows 7上使用jMeter 2.11和JDK1.8.0_05以及JRE8。

1 个答案:

答案 0 :(得分:2)

我注意到类似的事情,我的测试计划在使用jmeter build 2.11.r1554548(2013年12月31日生成)保存后被破坏。看起来像jmeter bug。

解决方法是从测试计划中删除ConstantThroughputTimer。保存完美。

我尝试使用最新的每小时生成的jmeter。我下载了apache-jmeter-r1613102(建于2014年7月18日),并且仍然在测试计划中使用ConstantThroughputTimer来破坏测试计划文件。