J-METER 文件保存问题 [英] J-METER FILE SAVING ISSUE

查看:37
本文介绍了J-METER 文件保存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 j-meter 并尝试获取测试报告然后我收到以下错误并且无法保存文件...选择选项后 <外观和感觉并改变它起作用的主题!!!!我想知道这背后的原因是什么?谁能解释一下?

I installed j-meter and tried to get a test report then i got the following error and couldn't save the file ...after selecting options < look&feel and changing the theme it worked!!!! i want to know what is the reason behind this ? can any one explain?

错误 o.a.j.JMeter:线程 Thread[AWT-EventQueue-0,6,main] 中未捕获的异常java.lang.NoClassDefFoundError: 无法初始化类 org.apache.jmeter.gui.util.FileDialoger在 org.apache.jmeter.gui.action.Save.computeFileName(Save.java:201) ~[ApacheJMeter_core.jar:5.4.1]在 org.apache.jmeter.gui.action.Save.doAction(Save.java:163) ~[ApacheJMeter_core.jar:5.4.1]在 org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.4.1]在 org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.4.1]在 java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316) ~[?:?]在 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(AccessController.java:391) ~[?:?]在 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) [?:?]

ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main] java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger at org.apache.jmeter.gui.action.Save.computeFileName(Save.java:201) ~[ApacheJMeter_core.jar:5.4.1] at org.apache.jmeter.gui.action.Save.doAction(Save.java:163) ~[ApacheJMeter_core.jar:5.4.1] at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87) ~[ApacheJMeter_core.jar:5.4.1] at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69) ~[ApacheJMeter_core.jar:5.4.1] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316) ~[?:?] 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(AccessController.java:391) ~[?:?] 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) [?:?]

推荐答案

原因是 Darcula 主题JDKJMeter.在后一种情况下,您可能想尝试 nightly build 以查看问题是否仍然存在

The reason is a bug either in the Darcula Theme or in JDK or in JMeter. In the latter case you might want to try out the nightly build to see if the issue is still there.

我无法从描述中重现您的问题,因此您需要指定确切的步骤并提供全面的环境信息(操作系统、Java 版本、安装的任何 JMeter 插件等)

I cannot reproduce your issue from the description so you need to specify exact steps and provide comprehensive environment information (operating system, Java version, any JMeter Plugins installed, etc.)

如果更改外观对您有帮助 - 您可以通过操作 jmeter.laf 属性来使更改永久化,即如果您将以下行放入 user.properties 文件:

If changing look and feel helps you - you can make the change permanent by manipulating jmeter.laf property, i.e. if you put the following line to user.properties file:

jmeter.laf=CrossPlatform

你不会看到这个美丽的"JMeter 下次启动时的深色主题

you won't see this "beautiful" dark theme on next start of JMeter

还可以使用 JMeter 命令行生成 HTML 报告仪表板,无需 GUI:

Also it is possible to generate HTML Reporting Dashboard using JMeter command-line, without the GUI:

  • 运行测试并生成仪表板:

  • Run test and generate dashboard:

 jmeter -n -t -f test.jmx -l result.jtl -e -o /path/to/dashboard

  • 从现有的 .jtl 结果文件中生成仪表板:

     jmeter -f -g result.jtl -o /path/to/dashboard
    

  • 更多信息:

    这篇关于J-METER 文件保存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆