JMeter 5.4 打开测试计划时出现意外错误

2022-09-04 21:18:16

我创建了一个非常简单的测试计划:enter image description here

  1. 我将测试计划保存为MySimpleTestplan.jmx

  2. 关闭 JMeter

  3. 再次启动JMeter:双击jmeter.bat

  4. JMeter 启动

  5. 我浏览到MySimpleTestplan.jmx并选择它

  6. 意外错误。下图:

  7. enter image description here

  8. 我在日志中查找

    警告 o.a.j.g.a.加载: 意外错误。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] atorg.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.(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) [?:?] atjava.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(事件分发线程.java:90) [?:?] 2020-12-09 16:54:04,150 错误 o.a.j.u.JMeters:意外错误 - 有关详细信息,请参阅日志

我的Java版本是:javac 11.0.8 JMeter版本:5.4我真的被困在这里。


答案 1

错误是 5.4 版本中的已知问题,将很快在 5.4.1 版上修复,并由 @FelixSchumacher

你打了 https://bz.apache.org/bugzilla/show_bug.cgi?id=64957 这个回归将通过一个版本(可能很快就会)修复,但与此同时,你可以尝试从主干或夜间构建的当前构建(https://jmeter.apache.org/nightly.html)

如果您不想降级,请从JMeter下载中获取新版本


答案 2

推荐