ClassCastException on Controllers created via FXMLLoader

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • fx2.1
    • Affects Version/s: None
    • Component/s: javafx
    • None
    • Environment:

      Java 7, Mac OS-x Lion,
      Javafx Preview.

      Loading node, which uses custom controller, via FXMLLoader.
      Unable to cast loader.getController() to the controller class.
      Controller is created via sun.misc.Launcher$AppClassLauncher
      Default class for application should be java.net.URLClassLoader.
      Used Netbeans - Create JavaFX FXML project, then modify main java class as in attachment. (Netbeans project attached).

            Assignee:
            Greg Brown (Inactive)
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: