java.lang.IllegalAccessError: class impl.org.controlsfx.skin.NotificationPaneSkin

78 views
Skip to first unread message

Jason Wehling

unread,
Sep 13, 2021, 7:22:30 PM9/13/21
to ControlsFX
I have an old Java 1.8 (Oracle) JavaFX project, using ControlsFX 8.40.12. And that all runs fine. But I'm now trying to modernize that, and hoping to upgrade it by compiling and running with the OpenJDK 17, and with JavaFX 17, and using a modern ControlsFX (11.1.0). Obviously there have been some configurations to deal with, but now I'm stuck with the following runtime issue. I've tried reading through other issues that seem similar and following the prescribed resolution, but I can't figure out what I'm doing wrong (and I'm on a Mac with BigSur). Any assistance is appreciated:

$ java -cp 'my-app.jar:~/lib/*'  --module-path /Library/Java/JavaVirtualMachines/javafx-sdk-17/lib  --add-modules javafx.swing,javafx.controls,javafx.fxml,javafx.media,javafx.web,javafx.base,javafx.graphics  --add-exports=javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls  --add-exports=javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls  --add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls  --add-exports=javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls  --add-exports=javafx.controls/com.sun.javafx.scene.control.inputmap=org.controlsfx.controls  --add-exports=javafx.base/com.sun.javafx.event=org.controlsfx.controls  --add-exports=javafx.base/com.sun.javafx.collections=org.controlsfx.controls  --add-exports=javafx.base/com.sun.javafx.runtime=org.controlsfx.controls  --add-opens=javafx.controls/javafx.scene.control.skin=org.controlsfx.controls  --add-opens=javafx.graphics/javafx.scene=org.controlsfx.controls  com.netxposure.io.NetxIO

WARNING: Unknown module: org.controlsfx.controls specified to --add-exports

WARNING: Unknown module: org.controlsfx.controls specified to --add-exports

WARNING: Unknown module: org.controlsfx.controls specified to --add-exports

WARNING: Unknown module: org.controlsfx.controls specified to --add-exports

WARNING: Unknown module: org.controlsfx.controls specified to --add-exports

WARNING: Unknown module: org.controlsfx.controls specified to --add-exports

WARNING: Unknown module: org.controlsfx.controls specified to --add-exports

WARNING: Unknown module: org.controlsfx.controls specified to --add-exports

WARNING: Unknown module: org.controlsfx.controls specified to --add-opens

WARNING: Unknown module: org.controlsfx.controls specified to --add-opens

Exception in thread "JavaFX Application Thread" java.lang.IllegalAccessError: class impl.org.controlsfx.skin.NotificationPaneSkin (in unnamed module @0x3b2da18f) cannot access class com.sun.javafx.scene.traversal.ParentTraversalEngine (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.scene.traversal to unnamed module @0x3b2da18f

at impl.org.controlsfx.skin.NotificationPaneSkin.<init>(NotificationPaneSkin.java:117)

at org.controlsfx.control.NotificationPane.createDefaultSkin(NotificationPane.java:227)

at javafx.controls/javafx.scene.control.Control.doProcessCSS(Control.java:897)

at javafx.controls/javafx.scene.control.Control$1.doProcessCSS(Control.java:89)

at javafx.controls/com.sun.javafx.scene.control.ControlHelper.processCSSImpl(ControlHelper.java:67)

at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSS(NodeHelper.java:146)

at javafx.graphics/javafx.scene.Parent.doProcessCSS(Parent.java:1400)

at javafx.graphics/javafx.scene.Parent$1.doProcessCSS(Parent.java:125)

at javafx.graphics/com.sun.javafx.scene.ParentHelper.processCSSImpl(ParentHelper.java:98)

at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSS(NodeHelper.java:146)

at javafx.graphics/javafx.scene.Parent.doProcessCSS(Parent.java:1400)

at javafx.graphics/javafx.scene.Parent$1.doProcessCSS(Parent.java:125)

at javafx.graphics/com.sun.javafx.scene.ParentHelper.processCSSImpl(ParentHelper.java:98)

at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSS(NodeHelper.java:146)

at javafx.graphics/javafx.scene.Parent.doProcessCSS(Parent.java:1400)

at javafx.graphics/javafx.scene.Parent$1.doProcessCSS(Parent.java:125)

at javafx.graphics/com.sun.javafx.scene.ParentHelper.processCSSImpl(ParentHelper.java:98)

at javafx.graphics/com.sun.javafx.scene.NodeHelper.processCSS(NodeHelper.java:146)

at javafx.graphics/javafx.scene.Node.processCSS(Node.java:9456)

at javafx.graphics/javafx.scene.Scene.doCSSPass(Scene.java:572)

at javafx.graphics/javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2510)

at javafx.graphics/com.sun.javafx.tk.Toolkit.lambda$runPulse$2(Toolkit.java:421)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)

at javafx.graphics/com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:420)

at javafx.graphics/com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:450)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:575)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:555)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:548)

at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:353)

at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)


Reply all
Reply to author
Forward
0 new messages