Error I have this problem i don't know what is wrong Project Structure is this. and the code :
public void logInAction(ActionEvent actionEvent) throws Exception {
try {
FXMLLoader mainLoader = new FXMLLoader();
mainLoader.setLocation(getClass().getResource("/controller/manage.fxml"));
Parent root = mainLoader.load();
MainController mainController = mainLoader.getController();
service.logInUser(emailField1.getText(),passwordField1.getText());
loggedInUser = service.getLoggedInUser();
Stage main_stage = new Stage();
mainController.init(service,loggedInUser);
main_stage.setScene(new Scene(root));
main_stage.show();
Stage stage = (Stage) loginButton.getScene().getWindow();
stage.close();
} catch (Exception exception) {
errorLabel1.setText(exception.getMessage());
System.out.println(exception.getMessage());
}
}