https://bz.apache.org/bugzilla/show_bug.cgi?id=66109

            Bug ID: 66109
           Summary: After a fresh install, FIle > Save dialog crashes,
                    can't save file + workaround
           Product: JMeter
           Version: 5.4.3
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: hans.yper...@vliz.be
  Target Milestone: JMETER_5.5

Steps to reproduce:

Download a fresh jmeter install.

In the default config, Options > Look and Feel > DarkLAF - Darcula is selected
(if not, I presume you can set it and restart jmeter).

Click File > Save.

I get the stack trace below.

Workaround: Choosing LAF  Windows Classic and restarting JMeter, the file >
save dialog works again.


2022-06-09 08:30:25,309 INFO o.a.j.u.JMeterUtils: Setting Locale to en_EN
2022-06-09 08:30:25,323 INFO o.a.j.JMeter: Loading user properties from:
user.properties
2022-06-09 08:30:25,324 INFO o.a.j.JMeter: Loading system properties from:
system.properties
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: Copyright (c) 1998-2021 The Apache
Software Foundation
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: Version 5.4.3
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: java.version=18.0.1
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: java.vm.name=OpenJDK 64-Bit Server
VM
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: os.name=Windows 10
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: os.arch=amd64
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: os.version=10.0
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: file.encoding=UTF-8
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: java.awt.headless=null
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: Max memory     =1073741824
2022-06-09 08:30:25,329 INFO o.a.j.JMeter: Available Processors =16
2022-06-09 08:30:25,338 INFO o.a.j.JMeter: Default Locale=English (EN)
2022-06-09 08:30:25,339 INFO o.a.j.JMeter: JMeter  Locale=English (EN)
2022-06-09 08:30:25,339 INFO o.a.j.JMeter:
JMeterHome=C:\software\apache-jmeter-5.4.3
2022-06-09 08:30:25,339 INFO o.a.j.JMeter: user.dir 
=C:\software\apache-jmeter-5.4.3\bin
2022-06-09 08:30:25,339 INFO o.a.j.JMeter: PWD      
=C:\software\apache-jmeter-5.4.3\bin
2022-06-09 08:30:25,340 INFO o.a.j.JMeter: IP:DELETED Name: DELETED
2022-06-09 08:30:25,418 INFO o.a.j.JMeter: Setting LAF to:
com.github.weisj.darklaf.DarkLaf:com.github.weisj.darklaf.theme.DarculaTheme
2022-06-09 08:30:25,741 INFO o.a.j.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties
2022-06-09 08:30:44,005 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 @0x5c1a8622) cannot access class sun.awt.shell.ShellFolder
(in module java.desktop) because module java.desktop does not export
sun.awt.shell to unnamed module @0x5c1a8622
        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:8712) ~[?:?]
        at javax.swing.JComponent.setUI(JComponent.java:743) ~[?:?]
        at javax.swing.JFileChooser.updateUI(JFileChooser.java:1840) ~[?:?]
        at javax.swing.JFileChooser.setup(JFileChooser.java:397) ~[?:?]
        at javax.swing.JFileChooser.<init>(JFileChooser.java:363) ~[?:?]
        at javax.swing.JFileChooser.<init>(JFileChooser.java:310) ~[?:?]
        at
org.apache.jmeter.gui.util.FileDialoger.<clinit>(FileDialoger.java:42)
~[ApacheJMeter_core.jar:5.4.3]
        at org.apache.jmeter.gui.action.Save.computeFileName(Save.java:201)
~[ApacheJMeter_core.jar:5.4.3]
        at org.apache.jmeter.gui.action.Save.doAction(Save.java:163)
~[ApacheJMeter_core.jar:5.4.3]
        at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87)
~[ApacheJMeter_core.jar:5.4.3]
        at
org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69)
~[ApacheJMeter_core.jar:5.4.3]
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
~[?:?]
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) ~[?:?]
        at java.awt.EventQueue$4.run(EventQueue.java:720) ~[?:?]
        at java.awt.EventQueue$4.run(EventQueue.java:714) ~[?:?]
        at
java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?]
        at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
~[?:?]
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:742) ~[?:?]
        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) [?:?]
2022-06-09 08:30:48,379 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.3]
        at org.apache.jmeter.gui.action.Save.doAction(Save.java:163)
~[ApacheJMeter_core.jar:5.4.3]
        at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:87)
~[ApacheJMeter_core.jar:5.4.3]
        at
org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:69)
~[ApacheJMeter_core.jar:5.4.3]
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
~[?:?]
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) ~[?:?]
        at java.awt.EventQueue$4.run(EventQueue.java:720) ~[?:?]
        at java.awt.EventQueue$4.run(EventQueue.java:714) ~[?:?]
        at
java.security.AccessController.doPrivileged(AccessController.java:399) ~[?:?]
        at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
~[?:?]
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:742) ~[?:?]
        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) [?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception
java.lang.IllegalAccessError: class
com.github.weisj.darklaf.ui.filechooser.DarkFilePaneUIBridge$DetailsTableModel
(in unnamed module @0x5c1a8622) cannot access class sun.awt.shell.ShellFolder
(in module java.desktop) because module java.desktop does not export
sun.awt.shell to unnamed module @0x5c1a8622 [in thread "AWT-EventQueue-0"]
        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:8712) ~[?:?]
        at javax.swing.JComponent.setUI(JComponent.java:743) ~[?:?]
        at javax.swing.JFileChooser.updateUI(JFileChooser.java:1840) ~[?:?]
        at javax.swing.JFileChooser.setup(JFileChooser.java:397) ~[?:?]
        at javax.swing.JFileChooser.<init>(JFileChooser.java:363) ~[?:?]
        at javax.swing.JFileChooser.<init>(JFileChooser.java:310) ~[?:?]
        at
org.apache.jmeter.gui.util.FileDialoger.<clinit>(FileDialoger.java:42)
~[ApacheJMeter_core.jar:5.4.3]
        ... 17 more


java -version
openjdk version "18.0.1" 2022-04-19
OpenJDK Runtime Environment Zulu18.30+11-CA (build 18.0.1+10)
OpenJDK 64-Bit Server VM Zulu18.30+11-CA (build 18.0.1+10, mixed mode, sharing)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to