JMeter 5.4打开测试计划时出现意外错误 [英] JMeter 5.4 When open testplan Unexpected error
问题描述
我创建了一个非常简单的测试计划:
I create a very simple testplan:
-
我将测试计划另存为MySimpleTestplan.jmx
I save the testplan as MySimpleTestplan.jmx
关闭JMeter
再次以以下方式启动JMeter:双击jmeter.bat
Start JMeter again as: double click on jmeter.bat
JMeter启动
我浏览到MySimpleTestplan.jmx并选择它
I browse to MySimpleTestplan.jmx and selects it
意外错误. Se图片如下:
Unexpected error. Se image below:
我在日志中查看
WARN o.a.j.g.a.Load:意外错误. java.lang.NullPointerException java.lang.NullPointerException:空 在java.util.ArrayDeque.addLast(ArrayDeque.java:304)〜[?:?] 在java.util.ArrayDeque.add(ArrayDeque.java:495)〜[?:?] 在org.apache.jmeter.gui.action.LoadRecentProject.updateRecentFileMenuItems(LoadRecentProject.java:125)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.util.JMeterMenuBar.setProjectFileLoaded(JMeterMenuBar.java:144)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.MainFrame.setProjectFileLoaded(MainFrame.java:330)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.GuiPackage.setTestPlanFile(GuiPackage.java:732)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:101)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:88)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:44)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87)〜[ApacheJMeter_core.jar:5.4] 在org.apache.jmeter.gui.action.ActionRouter.lambda $ actionPerformed $ 0(ActionRouter.java:69)〜[ApacheJMeter_core.jar:5.4] 在java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)[?:?] 在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)[?:?] 在java.awt.EventQueue $ 4.run(EventQueue.java:721)[?:?] 在java.awt.EventQueue $ 4.run(EventQueue.java:715)[?:?] 在java.security.AccessController.doPrivileged(本机方法)〜[?:?] 在java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)[?:?] 在java.awt.EventQueue.dispatchEvent(EventQueue.java:740)[?:?] 在java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)[?:?] 在java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)[?:?] 在java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)[?:?] 在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)[?:?] 在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)[?:?] 在java.awt.EventDispatchThread.run(EventDispatchThread.java:90)[?:?] 2020-12-09 16:54:04,150错误o.a.j.u.JMeterUtils:意外错误-有关详细信息,请参阅日志
WARN o.a.j.g.a.Load: Unexpected error. java.lang.NullPointerException java.lang.NullPointerException: null at java.util.ArrayDeque.addLast(ArrayDeque.java:304) ~[?:?] at java.util.ArrayDeque.add(ArrayDeque.java:495) ~[?:?] at org.apache.jmeter.gui.action.LoadRecentProject.updateRecentFileMenuItems(LoadRecentProject.java:125) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.util.JMeterMenuBar.setProjectFileLoaded(JMeterMenuBar.java:144) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.MainFrame.setProjectFileLoaded(MainFrame.java:330) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.GuiPackage.setTestPlanFile(GuiPackage.java:732) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:101) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:88) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:44) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.4] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.4] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) [?:?] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) [?:?] at java.awt.EventQueue$4.run(EventQueue.java:721) [?:?] at java.awt.EventQueue$4.run(EventQueue.java:715) [?:?] at java.security.AccessController.doPrivileged(Native Method) ~[?:?] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) [?:?] at java.awt.EventQueue.dispatchEvent(EventQueue.java:740) [?:?] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) [?:?] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) [?:?] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) [?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) [?:?] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:?] at java.awt.EventDispatchThread.run(EventDispatchThread.java:90) [?:?] 2020-12-09 16:54:04,150 ERROR o.a.j.u.JMeterUtils: Unexpected error - see log for details
我的Java版本是:javac 11.0.8 JMeter版本:5.4 我真的被困在这里.
My Java version is: javac 11.0.8 JMeter version: 5.4 I'm really stuck here.
推荐答案
Errors are known issues in 5.4 version and will be fixed soon on release 5.4.1, answered by @FelixSchumacher
您点击了 https://bz.apache.org/bugzilla/show_bug. cgi?id = 64957 此回归将通过发行版(可能很快)得到解决,但是在此期间,您可以尝试从主干或每晚进行构建(
you hit https://bz.apache.org/bugzilla/show_bug.cgi?id=64957 This regression will be fixed by a release (probably soon), but in the mean time you can try a current build from trunk or a nightly build (https://jmeter.apache.org/nightly.html)
If you don't want to downgrade, take new version from latest JMeter build
这篇关于JMeter 5.4打开测试计划时出现意外错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!