美好的一天,您尝试打开文件测试计划获取错误“空测试计划 - 请参阅日志文件”
jmeter.log
2014/08/21 11:11:05 INFO - jmeter.gui.action.Load: Loading file: C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples\ProposalRequest_atom1.jmx 2014/08/21 11:11:05 INFO - jmeter.services.FileServer: Set new base='C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples' 2014/08/21 11:11:05 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- : -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- message : -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : -1 : -1 first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:107) class : org.apache.jmeter.save.ScriptWrapper required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : org.apache.jmeter.save.ScriptWrapperConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 version : 2.11 r1554548 ------------------------------- 2014/08/21 11:11:05 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105) 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(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$400(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 2014/08/21 11:11:51 INFO - jmeter.gui.action.Load: Loading file: C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples\ProposalRequest_atom1.jmx 2014/08/21 11:11:51 INFO - jmeter.services.FileServer: Set new base='C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples' 2014/08/21 11:11:51 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- : -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- message : -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : -1 : -1 first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:107) class : org.apache.jmeter.save.ScriptWrapper required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : org.apache.jmeter.save.ScriptWrapperConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 version : 2.11 r1554548 ------------------------------- 2014/08/21 11:11:51 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105) 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(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$400(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 2014/08/21 11:20:32 INFO - jmeter.gui.action.Load: Loading file: C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples\ProposalRequest_atom1.jmx 2014/08/21 11:20:32 INFO - jmeter.services.FileServer: Set new base='C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples' 2014/08/21 11:20:32 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- : -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- message : -1 : -1 ---- Debugging information ---- message : -1 cause-exception : java.lang.ArrayIndexOutOfBoundsException cause-message : -1 class : org.apache.jmeter.testelement.property.FloatProperty required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 class[1] : org.apache.jmeter.control.ThroughputController converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter class[2] : org.apache.jorphan.collections.ListedHashTree converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter ------------------------------- cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : -1 : -1 first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:107) class : org.apache.jmeter.save.ScriptWrapper required-type : org.apache.jmeter.testelement.property.FloatProperty converter-type : org.apache.jmeter.save.ScriptWrapperConverter path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name line number : 948 version : 2.11 r1554548 ------------------------------- 2014/08/21 11:20:32 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136) at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105) 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(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$400(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
答案 0 :(得分:4)
如上所述,jMeter 2.11与Java 8不兼容。最简单的修复方法是将jmeter.bat中的java.exe路径更改为Java 7:
更改jmeter.bat(apache-jmeter-2.11 \ bin)
中的以下设置if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe
到
if .%JM_LAUNCH% == . set JM_LAUNCH="C:\Program Files\Java\jdk1.7.0_40\jre\bin\java.exe"
答案 1 :(得分:0)
检查:
1 /你没有在java 8中使用它(它不兼容,下一个版本是2.12)。在命令行中运行java -version来查看。错误如下:
2 /您的测试计划未使用您需要在jmeter的lib / ext中添加的第三方插件