gpt4 book ai didi

Jmeter - 在新机器上运行我的套件时出现异常

转载 作者:行者123 更新时间:2023-12-03 18:17:25 25 4
gpt4 key购买 nike

我将完整的 Jmeter 文件夹从一台机器复制到另一台机器并尝试运行。遇到错误 - ArrayIndexOutOfBoundsException: 0. 请帮忙

INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.assertions.BSFAssertion INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.extractor.BSFPostProcessor INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.modifiers.BSFPreProcessor INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser INFO - jorphan.exec.KeyToolUtils: keytool found at 'keytool' INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file G:\official\JMeter\apache-jmeter-3.1\bin\proxyserver.jks INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.java.sampler.BSFSampler INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.config.MongoSourceElement INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.timers.BSFTimer INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.BSFListener INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.visualizers.MonitorHealthVisualizer INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 INFO - jmeter.services.FileServer: Default base='G:\official\JMeter\apache-jmeter-3.1\bin' INFO - jmeter.gui.action.Load: Loading file: G:\official\JMeter\apache-jmeter-3.1\bin\Cafyne_3.0.jmx INFO - jmeter.services.FileServer: Set new base='G:\official\JMeter\apache-jmeter-3.1\bin' INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 INFO - jmeter.save.SaveService: Using SaveService properties version 3.1 INFO - jmeter.save.SaveService: All converter versions present and correct INFO - jmeter.save.SaveService: Loading file: G:\official\JMeter\apache-jmeter-3.1\bin\Cafyne_3.0.jmx INFO - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: true Allow variable: true Save: false Prefix: COOKIE_ INFO - jmeter.services.FileServer: Set new base='G:\official\JMeter\apache-jmeter-3.1\bin' ERROR - jmeter.gui.action.ActionRouter: Error processing org.apache.jmeter.gui.action.Start@71687585 java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.jmeter.gui.action.Start.startEngine(Start.java:193) at org.apache.jmeter.gui.action.Start.startEngine(Start.java:174) at org.apache.jmeter.gui.action.Start.startEngine(Start.java:164) at org.apache.jmeter.gui.action.Start.doAction(Start.java:108) at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80) at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40) at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(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$JavaSecurityAccessImpl.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)

最佳答案

我知道这个问题很老,但我遇到了同样的问题并没有找到解决方案。然后我分析了JMeter的源代码,我把解决方案留在这里给其他经过它的人。

就我而言,当我创建测试计划时,默认情况下它是禁用的。

在我启用测试计划后(右键单击 -> 启用)它开始工作了!

关于Jmeter - 在新机器上运行我的套件时出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44773373/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com