Em đang sử dụng java version “18.0.2.1” 2022-08-18, nhưng khi em run project thì gặp lỗi này ạ. Em đã thử các cách như gỡ JDK cài lại, chỉ rõ thư mục thư viện javafx-sdk trong modulepath vẫn không hoạt động ạ. Mong người có thể giúp đỡ, em xin cảm ơn mọi người ạ!
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: net.rgielen.fxweaver.core.FxLoadException: Unable to load FXML file file:/D:/Manager/target/classes/org/thekiddos/manager/gui/controllers/add_reservation.fxml
at net.rgielen.fxweaver.core.FxWeaver.loadByViewUsingFxmlLoader(FxWeaver.java:400)
at net.rgielen.fxweaver.core.FxWeaver.loadByView(FxWeaver.java:385)
at net.rgielen.fxweaver.core.FxWeaver.lambda$load$0(FxWeaver.java:380)
at java.base/java.util.Optional.map(Optional.java:260)
at net.rgielen.fxweaver.core.FxWeaver.load(FxWeaver.java:380)
at net.rgielen.fxweaver.core.FxWeaver.loadView(FxWeaver.java:184)
at net.rgielen.fxweaver.core.FxWeaver.loadView(FxWeaver.java:125)
at net.rgielen.fxweaver.core.FxWeaver.loadView(FxWeaver.java:94)
at org.thekiddos.manager.Util.loadFXMLView(Util.java:179)
at org.thekiddos.manager.Util.createWindowContainer(Util.java:133)
at org.thekiddos.manager.gui.GUIApplication.start(GUIApplication.java:45)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
... 1 more
Caused by: javafx.fxml.LoadException:
/D:/Manager/target/classes/org/thekiddos/manager/gui/controllers/add_reservation.fxml:56
at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2625)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2603)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2450)
at net.rgielen.fxweaver.core.FxWeaver.loadByViewUsingFxmlLoader(FxWeaver.java:397)
... 19 more
Caused by: java.lang.NullPointerException: Cannot invoke "javafx.beans.property.ReadOnlyObjectWrapper.set(Object)" because "editor" is null
at com.jfoenix.controls.JFXDatePicker.initialize(JFXDatePicker.java:84)
at com.jfoenix.controls.JFXDatePicker.<init>(JFXDatePicker.java:62)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
at java.base/java.lang.Class.newInstance(Class.java:645)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1019)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:754)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2722)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2552)
... 21 more