This happens when the FXML resource path is incorrect
Remove the backslash:
"/test.fxml" => "test.fxml"