首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >JMeter NonGUI错误: java.lang.NullPointerException

JMeter NonGUI错误: java.lang.NullPointerException
EN

Stack Overflow用户
提问于 2014-09-10 21:05:06
回答 1查看 3K关注 0票数 1

我试图通过Java代码运行JMeter (使用Runtime.exe),但得到以下错误:

我正在使用jmeter.bat通过Java创建新的进程

以下是参数:C:\apache-jmeter 2.8\bin\jmeter.bat -n -t C:\test\test.jmx -l C:\test\test.log

请帮帮我!

代码语言:javascript
复制
2014/09/10 18:05:25 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException:  : no more data available - expected end tags </elementProp></collectionProp></elementProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <elementProp> from line 1 and start tag <collectionProp> from line 1 and start tag <elementProp> from line 1 and start tag <HTTPSamplerProxy> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <jmeterTestPlan> from line 1, parser stopped on END_TAG seen ...</stringProp>        ... @1:1966080 :  : no more data available - expected end tags </elementProp></collectionProp></elementProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <elementProp> from line 1 and start tag <collectionProp> from line 1 and start tag <elementProp> from line 1 and start tag <HTTPSamplerProxy> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <jmeterTestPlan> from line 1, parser stopped on END_TAG seen ...</stringProp>        ... @1:1966080
---- Debugging information ----
message             :  : no more data available - expected end tags </elementProp></collectionProp></elementProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <elementProp> from line 1 and start tag <collectionProp> from line 1 and start tag <elementProp> from line 1 and start tag <HTTPSamplerProxy> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <jmeterTestPlan> from line 1, parser stopped on END_TAG seen ...</stringProp>        ... @1:1966080
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : no more data available - expected end tags </elementProp></collectionProp></elementProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <elementProp> from line 1 and start tag <collectionProp> from line 1 and start tag <elementProp> from line 1 and start tag <HTTPSamplerProxy> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <jmeterTestPlan> from line 1, parser stopped on END_TAG seen ...</stringProp>        ... @1:1966080
class               : org.apache.jmeter.testelement.property.TestElementProperty
required-type       : org.apache.jmeter.testelement.property.TestElementProperty
converter-type      : org.apache.jmeter.save.converters.TestElementPropertyConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[3]/HTTPSamplerProxy[154]/elementProp/collectionProp/elementProp[41]
line number         : 1
class[1]            : org.apache.jmeter.testelement.property.CollectionProperty
converter-type[1]   : org.apache.jmeter.save.converters.MultiPropertyConverter
class[2]            : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
converter-type[2]   : org.apache.jmeter.protocol.http.sampler.HTTPSamplerBaseConverter
class[3]            : org.apache.jorphan.collections.ListedHashTree
converter-type[3]   : org.apache.jmeter.save.converters.HashTreeConverter
------------------------------- :  : no more data available - expected end tags </elementProp></collectionProp></elementProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <elementProp> from line 1 and start tag <collectionProp> from line 1 and start tag <elementProp> from line 1 and start tag <HTTPSamplerProxy> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <jmeterTestPlan> from line 1, parser stopped on END_TAG seen ...</stringProp>        ... @1:1966080 :  : no more data available - expected end tags </elementProp></collectionProp></elementProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <elementProp> from line 1 and start tag <collectionProp> from line 1 and start tag <elementProp> from line 1 and start tag <HTTPSamplerProxy> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <jmeterTestPlan> from line 1, parser stopped on END_TAG seen ...</stringProp>        ... @1:1966080
---- Debugging information ----
message             :  : no more data available - expected end tags </elementProp></collectionProp></elementProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <elementProp> from line 1 and start tag <collectionProp> from line 1 and start tag <elementProp> from line 1 and start tag <HTTPSamplerProxy> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <jmeterTestPlan> from line 1, parser stopped on END_TAG seen ...</stringProp>        ... @1:1966080
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : no more data available - expected end tags </elementProp></collectionProp></elementProp></HTTPSamplerProxy></hashTree></hashTree></hashTree></hashTree></jmeterTestPlan> to close start tag <elementProp> from line 1 and start tag <collectionProp> from line 1 and start tag <elementProp> from line 1 and start tag <HTTPSamplerProxy> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <hashTree> from line 1 and start tag <jmeterTestPlan> from line 1, parser stopped on END_TAG seen ...</stringProp>        ... @1:1966080
class               : org.apache.jmeter.testelement.property.TestElementProperty
required-type       : org.apache.jmeter.testelement.property.TestElementProperty
converter-type      : org.apache.jmeter.save.converters.TestElementPropertyConverter
path                : /jmeterTestPlan/hashTree/hashTree/hashTree/hashTree[3]/HTTPSamplerProxy[154]/elementProp/collectionProp/elementProp[41]
line number         : 1
class[1]            : org.apache.jmeter.testelement.property.CollectionProperty
converter-type[1]   : org.apache.jmeter.save.converters.MultiPropertyConverter
class[2]            : org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
converter-type[2]   : org.apache.jmeter.protocol.http.sampler.HTTPSamplerBaseConverter
class[3]            : org.apache.jorphan.collections.ListedHashTree
converter-type[3]   : org.apache.jmeter.save.converters.HashTreeConverter

..................................
........................
..............


2014/09/10 18:05:25 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:744)
    at org.apache.jmeter.JMeter.startNonGui(JMeter.java:722)
    at org.apache.jmeter.JMeter.start(JMeter.java:386)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.jmeter.NewDriver.main(NewDriver.java:216)
EN

回答 1

Stack Overflow用户

发布于 2014-09-11 13:48:58

您的xml文件已损坏或不是xml。

检查一下。

您使用的是什么版本的jmeter和java?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25766216

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档