如何修复JMeter ArrayIndexOutOfBoundsException?

时间:2019-07-08 06:40:47

标签: jmeter

我正在通过Jmeter测试http://lifecharger.org/make-the-rest-of-your-life-the-best-of-your-life/,但遇到错误了。

我的JMeter版本是5.1.1

2019-07-08 11:47:04,668 ERROR o.a.j.g.a.ActionRouter: Error processing org.apache.jmeter.gui.action.Start@12ab28e
java.lang.ArrayIndexOutOfBoundsException: 0
    at org.apache.jmeter.gui.action.Start.startEngine(Start.java:188) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.Start.doAction(Start.java:114) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_211]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_211]
    at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_211]
    at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_211]
    at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_211]
    at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_211]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_211]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_211]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_211]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_211]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_211]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_211]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_211]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_211]

如何解决此问题?

我正在使用jmeter automation testing资源来学习JMeter

error image

1 个答案:

答案 0 :(得分:0)

您的测试计划已禁用(灰色),这会导致异常

您可以使用 Ctrl + T 启用它,或右键单击它并启用