B4J Question FXML load exception when loading file designed through scene builder

VB6Back

Member
Hello All,

I am relatively new to the Java world and totally new to B4J. I am glad this product exists comming from a VB6 background.

I designed a test form using scene builder. I have attached the fxml file. When I try to load it through B4J AppStart I get the following error:

Error occurred on line: 13 (main).
javafx.fxml.LoadException: Invalid property.
at javafx.fxml.FXMLLoader$PropertyElement.<init>(FXMLLoader.java:1169)
at javafx.fxml.FXMLLoader.createElement(FXMLLoader.java:2380)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2353)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2172)
at anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(PaneWrapper.java:134)
at b4j.example.main._appstart(main.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:563)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:224)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:82)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.start(main.java:35)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:219)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:182)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:179)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:17)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:67)
at java.lang.Thread.run(Thread.java:745)​

I am able to preview the form through scene builder without a problem.

I appreciate any help on this.
 

Attachments

  • test1.zip
    1.8 KB · Views: 260
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
I tested it with Java 8 and it works:

SS-2014-09-12_09.36.57.png
 
Upvote 0

VB6Back

Member
Hi Erel,

Thank you so much for your prompt reply. I installed JDK8 and worked like a charm. I am not sure why it didn't work under JDK7 but I guess I need to do a lot of reading to find out...
 
Upvote 0

Phayao

Active Member
Licensed User
Longtime User
Hello,
I got the same problem with jdk 1.7, which could be solved by upgrading to jdk 1.8
Thanks for the hint !
Chris
 
Upvote 0
Top