Jmeter Error: ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]

Recently, I started to learn JMeter by myself, but I found an error when running the interface (the interface has passed the postman, and finally found the reason after self-examination)

First, the error prompt: we mainly look at error. We can see error o.a.j.jmeter: uncaught exception in thread thread [awt-eventqueue-0,6, main], and then look down to see relevant fields such as darkfilexxx. It can be solved by changing the dark skin directly, as shown in the figure below:

2021-10-13 20:27:42,010 INFO o.j.r.PluginManager: Plugins Status: [jpgc-plugins-manager=1.6, jmeter-core=5.4.1, jmeter-ftp=5.4.1, jmeter-http=5.4.1, jmeter-jdbc=5.4.1, jmeter-jms=5.4.1, jmeter-junit=5.4.1, jmeter-java=5.4.1, jmeter-ldap=5.4.1, jmeter-mail=5.4.1, jmeter-mongodb=5.4.1, jmeter-native=5.4.1, jmeter-tcp=5.4.1, jmeter-components=5.4.1]
2021-10-13 20:27:54,241 INFO o.a.j.s.FileServer: Default base='/Users/kidd'
2021-10-13 20:27:54,243 INFO o.a.j.g.a.Load: Loading file: /Users/kidd/jmetertesting_file/View Results Tree.jmx
2021-10-13 20:27:54,244 INFO o.a.j.s.FileServer: Set new base='/Users/kidd/jmetertesting_file'
2021-10-13 20:27:54,383 INFO o.a.j.s.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2021-10-13 20:27:54,391 INFO o.a.j.s.SaveService: Using SaveService properties version 5.0
2021-10-13 20:27:54,392 INFO o.a.j.s.SaveService: Using SaveService properties file encoding UTF-8
2021-10-13 20:27:54,394 INFO o.a.j.s.SaveService: Loading file: /Users/kidd/jmetertesting_file/View Results Tree.jmx
2021-10-13 20:27:54,511 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-10-13 20:27:54,511 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-10-13 20:27:54,511 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-10-13 20:27:54,511 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2021-10-13 20:27:54,511 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2021-10-13 20:27:54,511 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2021-10-13 20:27:54,640 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times
2021-10-13 20:27:54,640 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2021-10-13 20:27:54,641 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true
2021-10-13 20:27:54,641 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000
2021-10-13 20:27:54,763 INFO o.a.j.v.ViewResultsFullVisualizer: Add JavaFX to your Java installation if you want to use renderer: org.apache.jmeter.visualizers.RenderInBrowser
2021-10-13 20:27:54,844 INFO o.a.j.s.FileServer: Set new base='/Users/kidd/jmetertesting_file'
2021-10-13 20:27:54,894 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]
java.lang.IllegalAccessError: class com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel (in unnamed module @0x4c40b76e) cannot access class sun.awt.shell.ShellFolder (in module java.desktop) because module java.desktop does not export sun.awt.shell to unnamed module @0x4c40b76e
	at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel.updateColumnInfo(DarkFilePaneUIBridge.java:1128) ~[darklaf-core-2.5.4.jar:2.5.4]
	at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel.<init>(DarkFilePaneUIBridge.java:1115) ~[darklaf-core-2.5.4.jar:2.5.4]
	at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge.getDetailsTableModel(DarkFilePaneUIBridge.java:576) ~[darklaf-core-2.5.4.jar:2.5.4]
	at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$SortableListModel.<init>(DarkFilePaneUIBridge.java:1079) ~[darklaf-core-2.5.4.jar:2.5.4]
	at com.github.weisj.darklaf.ui.filechooser.DarkFilePane.createList(DarkFilePane.java:137) ~[darklaf-core-2.5.4.jar:2.5.4]
	at com.github.weisj.darklaf.ui.filechooser.DarkFileChooserUIBridge.createList(DarkFileChooserUIBridge.java:585) ~[darklaf-core-2.5.4.jar:2.5.4]
	at com.github.weisj.darklaf.ui.filechooser.DarkFileChooserUIBridge$MetalFileChooserUIAccessor.createList(DarkFileChooserUIBridge.java:750) ~[darklaf-core-2.5.4.jar:2.5.4]
	at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge.setViewType(DarkFilePaneUIBridge.java:376) ~[darklaf-core-2.5.4.jar:2.5.4]
	at com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge.propertyChange(DarkFilePaneUIBridge.java:890) ~[darklaf-core-2.5.4.jar:2.5.4]
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343) ~[?:?]
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335) ~[?:?]
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268) ~[?:?]
	at java.awt.Component.firePropertyChange(Component.java:8722) ~[?:?]
	at javax.swing.JComponent.setUI(JComponent.java:733) ~[?:?]
	at javax.swing.JFileChooser.updateUI(JFileChooser.java:1839) ~[?:?]
	at javax.swing.JFileChooser.setup(JFileChooser.java:396) ~[?:?]
	at javax.swing.JFileChooser.<init>(JFileChooser.java:362) ~[?:?]
	at javax.swing.JFileChooser.<init>(JFileChooser.java:309) ~[?:?]
	at org.apache.jmeter.gui.util.FileDialoger.<clinit>(FileDialoger.java:42) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:156) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:101) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.action.LoadRecentProject.doActionAfterCheck(LoadRecentProject.java:71) ~[ApacheJMeter_core.jar:5.4.1]
	at org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:44) ~[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:318) ~[?:?]
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) ~[?:?]
	at java.awt.EventQueue$4.run(EventQueue.java:722) ~[?:?]
	at java.awt.EventQueue$4.run(EventQueue.java:716) ~[?:?]
	at java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?]
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) ~[?:?]
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:741) ~[?:?]
	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) [?:?]
2021-10-13 20:27:57,826 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2021-10-13 20:27:57,827 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2021-10-13 20:27:57,829 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2021-10-13 20:27:57,830 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2021-10-13 20:27:57,832 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2021-10-13 20:27:57,889 INFO o.a.j.g.u.JMeterMenuBar: setRunning(true, *local*)
2021-10-13 20:27:57,934 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2021-10-13 20:27:57,934 INFO o.a.j.e.StandardJMeterEngine: Starting 5 threads for group Thread Group.
2021-10-13 20:27:57,934 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2021-10-13 20:27:57,934 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=5 ramp-up=1 delayedStart=false
2021-10-13 20:27:57,938 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2021-10-13 20:27:57,942 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2021-10-13 20:27:57,942 INFO o.a.j.e.StandardJMeterEngine: All thread groups have been started
2021-10-13 20:27:57,953 INFO o.a.j.p.h.s.HTTPHCAbstractImpl: Local host = kiddMacBook-Pro.local
2021-10-13 20:27:57,964 INFO o.a.j.p.h.s.HTTPHC4Impl: HTTP request retry count = 0
2021-10-13 20:27:58,138 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-2
2021-10-13 20:27:58,339 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-3
2021-10-13 20:27:58,363 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-1
2021-10-13 20:27:58,363 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-1
2021-10-13 20:27:58,399 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-3
2021-10-13 20:27:58,399 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-3
2021-10-13 20:27:58,538 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-4
2021-10-13 20:27:58,585 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-4
2021-10-13 20:27:58,586 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-4
2021-10-13 20:27:58,738 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-5
2021-10-13 20:27:58,764 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-2
2021-10-13 20:27:58,764 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-2
2021-10-13 20:27:58,789 INFO o.a.j.t.JMeterThread: Thread is done: Thread Group 1-5
2021-10-13 20:27:58,789 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-5
2021-10-13 20:27:58,789 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2021-10-13 20:27:58,790 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, *local*)

Modify the configuration: re run, the problem is solved perfectly

Read More: