![](/img/trans.png)
[英]Why do I get error “prefix [..] is not defined” when I try to use my jsf custom tag?
[英]Why do I get a NoClassDefFound error when I try to save my test plan?
我安裝了 apache-jmeter-5.1.1 和 java 1.8.0_221 (8),並且正在瀏覽 入門指南以在 GUI 中構建 Web 測試計划。 但是當我單擊保存以保存測試計划時,我收到以下錯誤:
未捕獲的異常 java.lang.NoClassDefFoundError:無法初始化類 org.apache.jmeter.gui.util.FileDialoger。 有關詳細信息,請參閱日志文件。
調試器中的完整輸出:
2019-07-24 15:30:13,306 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger
at org.apache.jmeter.gui.action.Save.computeFileName(Save.java:203) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.Save.doAction(Save.java:165) ~[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_221]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_221]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_221]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_221]
知道如何解決嗎?
請嘗試以下操作:
Uncaught Exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger. See log file for details.
我安裝了apache-jmeter-5.1.1和java 1.8.0_221(8),並且正在逐步 入門指南中,以在GUI中構建Web測試計划。 但是,當我單擊“保存”以保存測試計划時,會收到上述錯誤。
調試器中的完整輸出:
2019-07-24 15:30:13,306 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.jmeter.gui.util.FileDialoger
at org.apache.jmeter.gui.action.Save.computeFileName(Save.java:203) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.gui.action.Save.doAction(Save.java:165) ~[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_221]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_221]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_221]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_221]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_221]
at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_221]
知道如何解決嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.