No FXML File specified error

213 views
Skip to first unread message

Leonid Piliptsevich

unread,
May 31, 2016, 10:32:41 AM5/31/16
to DataFX
Hello!
I was trying to make same sample app from that tutorial, but i am getting that error:
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com
.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com
.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
    at java
.lang.Thread.run(Thread.java:745)
Caused by: io.datafx.controller.flow.FlowException: io.datafx.controller.FxmlLoadException: Can't create controller for class class sample.Controller
    at io.datafx.controller.flow.FlowHandler.start(FlowHandler.java:149)
    at io.datafx.controller.flow.Flow.startInStage(Flow.java:389)
    at sample.Main.start(Main.java:11)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
    ... 1 more
Caused by: io.datafx.controller.FxmlLoadException: Can'
t create controller for class class sample.Controller
    at io
.datafx.controller.ViewFactory.createByController(ViewFactory.java:201)
    at io
.datafx.controller.flow.FlowHandler.start(FlowHandler.java:146)
   
... 11 more
Caused by: io.datafx.controller.FxmlLoadException: No FXML File specified!
    at io
.datafx.controller.ViewFactory.createLoader(ViewFactory.java:226)
    at io
.datafx.controller.ViewFactory.createByController(ViewFactory.java:173)
   
... 12 more

Any help please? What could be the reason? i DID specified valid fxml file. Everything is like in the tutorial, except classes names.
Thank you.

Hendrik Ebbers

unread,
May 31, 2016, 10:35:02 AM5/31/16
to Leonid Piliptsevich, DataFX
Hi,

what version of DataFX are you using? Maybe you depend on a wrong version.


--
You received this message because you are subscribed to the Google Groups "DataFX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to datafx-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages