• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

LoadException with FXML created with Scene Builder 2.0

 
zidane zizo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got a problem that i absolutly cant solve on my own because i have just started using JAVA FX. I get a nasty javafx.fxml.LoadException: , but i have done exactly like a guide (http://docs.oracle.com/javafx/scenebuilder/1/get_started/jsbpub-get_started.htm), but i cant get my Main to run. This is the console:

What does it mean and how can I fix it?
the main class:

I've generated FXML in Scene Builder 2.0:

Issuetracking.jpg
[Thumbnail for Issuetracking.jpg]
 
John Damien Smith
Rancher
Posts: 387
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should use SceneBuilder 2 and it's associated getting started guide, rather than the dated SceneBuilder 1 getting started guide.

The error you are getting:

means that you are trying to reference a some object on line 481 of IssueTrackingLiteController.java and that object has not been initialized to some value.
I don't know what that object is, so I couldn't tell you why it is not initialized.
A likely candidates is a mismatch between an fx:id name definition and an @FXML marked variable name in your controller class, which prevented correct initialization of the object (but that is just a guess).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic