title: Exception for Application Start Method caused by Load exception
body: <p>I am trying to build an application and while running it is giving me run time errors with this fxml. I am trying to build a login page which jumps to welcome screen on correct password and username or else show an error.
  I am using Scene builder for the Views and Using the Model-View-Controller architecture. I am begineer with java-javafx.</p>
  <p>Views class:</p>
  <pre><code>  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  
  &lt;?import javafx.geometry.Insets?&gt;
  &lt;?import javafx.scene.control.Button?&gt;
  &lt;?import javafx.scene.control.ButtonBar?&gt;
  &lt;?import javafx.scene.control.PasswordField?&gt;
  &lt;?import javafx.scene.control.Separator?&gt;
  &lt;?import javafx.scene.control.TextField?&gt;
  &lt;?import javafx.scene.effect.DropShadow?&gt;
  &lt;?import javafx.scene.image.Image?&gt;
  &lt;?import javafx.scene.image.ImageView?&gt;
  &lt;?import javafx.scene.layout.AnchorPane?&gt;
  &lt;?import javafx.scene.layout.HBox?&gt;
  &lt;?import javafx.scene.layout.VBox?&gt;
  &lt;?import javafx.scene.text.Font?&gt;
  &lt;?import javafx.scene.text.Text?&gt;
  
  &lt;AnchorPane nodeOrientation=&quot;LEFT_TO_RIGHT&quot; prefHeight=&quot;720.0&quot; prefWidth=&quot;1280.0&quot; style=&quot;-fx-background-color: #ffffff;&quot; xmlns=&quot;http://javafx.com/javafx/16&quot; xmlns:fx=&quot;http://javafx.com/fxml/1&quot; fx:controller=&quot;gload.views.main.LoginScreenctrl&quot;&gt;
     &lt;children&gt;
        &lt;VBox alignment=&quot;CENTER&quot; maxHeight=&quot;-Infinity&quot; maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; prefHeight=&quot;720.0&quot; prefWidth=&quot;1280.0&quot; style=&quot;-fx-background-color: #F3F3F3;&quot; AnchorPane.bottomAnchor=&quot;0.0&quot; AnchorPane.leftAnchor=&quot;0.0&quot; AnchorPane.rightAnchor=&quot;0.0&quot; AnchorPane.topAnchor=&quot;0.0&quot;&gt;
           &lt;children&gt;
              &lt;AnchorPane minHeight=&quot;118.0&quot; minWidth=&quot;0.0&quot; prefHeight=&quot;150.0&quot; prefWidth=&quot;1280.0&quot;&gt;
                 &lt;children&gt;
                    &lt;HBox alignment=&quot;TOP_CENTER&quot; layoutX=&quot;177.0&quot; layoutY=&quot;30.0&quot; prefHeight=&quot;90.0&quot; prefWidth=&quot;860.0&quot; AnchorPane.bottomAnchor=&quot;30.0&quot; AnchorPane.leftAnchor=&quot;177.0&quot; AnchorPane.rightAnchor=&quot;243.0&quot; AnchorPane.topAnchor=&quot;30.0&quot;&gt;
                       &lt;children&gt;
                          &lt;Text fx:id=&quot;gloadtext&quot; fill=&quot;#00bbde&quot; fontSmoothingType=&quot;LCD&quot; stroke=&quot;WHITE&quot; strokeType=&quot;OUTSIDE&quot; styleClass=&quot;centered&quot; text=&quot;GLOAD for&quot; textAlignment=&quot;CENTER&quot; wrappingWidth=&quot;401.13671875&quot; HBox.hgrow=&quot;NEVER&quot;&gt;
                             &lt;font&gt;
                                &lt;Font name=&quot;Times New Roman Bold&quot; size=&quot;68.0&quot; /&gt;
                             &lt;/font&gt;
                          &lt;/Text&gt;
                          &lt;ImageView fitHeight=&quot;75.0&quot; fitWidth=&quot;417.0&quot; pickOnBounds=&quot;true&quot; preserveRatio=&quot;true&quot;&gt;
                             &lt;image&gt;
                                &lt;Image url=&quot;@../../../main/resources/Images/1200px-Logo.svg.png&quot; /&gt;
                             &lt;/image&gt;
                          &lt;/ImageView&gt;
                       &lt;/children&gt;
                    &lt;/HBox&gt;
                 &lt;/children&gt;
              &lt;/AnchorPane&gt;
              &lt;Separator nodeOrientation=&quot;LEFT_TO_RIGHT&quot; prefHeight=&quot;23.0&quot; prefWidth=&quot;1263.0&quot; /&gt;
              &lt;AnchorPane maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; prefHeight=&quot;528.0&quot; prefWidth=&quot;1280.0&quot; stylesheets=&quot;@../../../main/resources/style.css&quot; VBox.vgrow=&quot;ALWAYS&quot;&gt;
                 &lt;children&gt;
                    &lt;VBox alignment=&quot;TOP_CENTER&quot; layoutX=&quot;275.0&quot; layoutY=&quot;21.0&quot; maxHeight=&quot;-Infinity&quot; maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; prefHeight=&quot;504.0&quot; prefWidth=&quot;640.0&quot; style=&quot;-fx-background-color: #ffffff;&quot; stylesheets=&quot;@../../../main/resources/style.css&quot; AnchorPane.leftAnchor=&quot;275.0&quot; AnchorPane.topAnchor=&quot;21.0&quot;&gt;
                       &lt;children&gt;
                          &lt;ImageView fitHeight=&quot;60.0&quot; fitWidth=&quot;330.0&quot; pickOnBounds=&quot;true&quot; preserveRatio=&quot;true&quot;&gt;
                             &lt;image&gt;
                                &lt;Image url=&quot;@../../../main/resources/Images/1200px-Logo.svg.png&quot; /&gt;
                             &lt;/image&gt;
                             &lt;VBox.margin&gt;
                                &lt;Insets top=&quot;10.0&quot; /&gt;
                             &lt;/VBox.margin&gt;
                          &lt;/ImageView&gt;
                          &lt;Text fill=&quot;#22286f&quot; fontSmoothingType=&quot;LCD&quot; strokeType=&quot;OUTSIDE&quot; strokeWidth=&quot;0.0&quot; text=&quot;Welcome to ****&quot; textAlignment=&quot;CENTER&quot;&gt;
                             &lt;font&gt;
                                &lt;Font name=&quot;Impact&quot; size=&quot;30.0&quot; /&gt;
                             &lt;/font&gt;
                          &lt;/Text&gt;
                          &lt;Text fontSmoothingType=&quot;LCD&quot; strokeType=&quot;OUTSIDE&quot; strokeWidth=&quot;0.0&quot; text=&quot;Sign In to Continue&quot; textAlignment=&quot;CENTER&quot;&gt;
                             &lt;font&gt;
                                &lt;Font name=&quot;Impact&quot; size=&quot;22.0&quot; /&gt;
                             &lt;/font&gt;
                          &lt;/Text&gt;
                          &lt;AnchorPane prefHeight=&quot;344.0&quot; prefWidth=&quot;640.0&quot; style=&quot;-fx-background-color: #ffffff;&quot;&gt;
                             &lt;children&gt;
                                &lt;TextField fx:id=&quot;user&quot; layoutX=&quot;199.0&quot; layoutY=&quot;71.0&quot; maxHeight=&quot;-Infinity&quot; maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; prefHeight=&quot;28.0&quot; prefWidth=&quot;263.0&quot; promptText=&quot;Username&quot; AnchorPane.bottomAnchor=&quot;240.0&quot; AnchorPane.leftAnchor=&quot;199.0&quot; AnchorPane.rightAnchor=&quot;178.0&quot; AnchorPane.topAnchor=&quot;71.0&quot; /&gt;
                                &lt;PasswordField fx:id=&quot;password&quot; layoutX=&quot;201.0&quot; layoutY=&quot;145.0&quot; maxHeight=&quot;-Infinity&quot; maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; onKeyPressed=&quot;#enter&quot; prefHeight=&quot;28.0&quot; prefWidth=&quot;263.0&quot; promptText=&quot;Password&quot; AnchorPane.bottomAnchor=&quot;166.0&quot; AnchorPane.leftAnchor=&quot;201.0&quot; AnchorPane.rightAnchor=&quot;176.0&quot; AnchorPane.topAnchor=&quot;145.0&quot; /&gt;
                                &lt;Text layoutX=&quot;199.0&quot; layoutY=&quot;56.0&quot; strokeType=&quot;OUTSIDE&quot; strokeWidth=&quot;0.0&quot; text=&quot;Username:&quot; wrappingWidth=&quot;152.291015625&quot; AnchorPane.bottomAnchor=&quot;282.1064453125&quot; AnchorPane.leftAnchor=&quot;199.0&quot; AnchorPane.rightAnchor=&quot;288.708984375&quot; AnchorPane.topAnchor=&quot;39.9599609375&quot;&gt;
                                   &lt;font&gt;
                                      &lt;Font name=&quot;Times New Roman Bold&quot; size=&quot;18.0&quot; /&gt;
                                   &lt;/font&gt;
                                &lt;/Text&gt;
                                &lt;Text layoutX=&quot;198.0&quot; layoutY=&quot;132.0&quot; strokeType=&quot;OUTSIDE&quot; strokeWidth=&quot;0.0&quot; text=&quot;eDir password:&quot; AnchorPane.bottomAnchor=&quot;206.1064453125&quot; AnchorPane.leftAnchor=&quot;198.0&quot; AnchorPane.rightAnchor=&quot;324.5078125&quot; AnchorPane.topAnchor=&quot;115.9599609375&quot;&gt;
                                   &lt;font&gt;
                                      &lt;Font name=&quot;Times New Roman Bold&quot; size=&quot;18.0&quot; /&gt;
                                   &lt;/font&gt;
                                &lt;/Text&gt;
                                &lt;ButtonBar layoutX=&quot;209.0&quot; layoutY=&quot;241.0&quot; maxHeight=&quot;-Infinity&quot; maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; prefHeight=&quot;37.0&quot; prefWidth=&quot;213.0&quot; AnchorPane.bottomAnchor=&quot;64.0&quot; AnchorPane.leftAnchor=&quot;209.0&quot; AnchorPane.rightAnchor=&quot;218.0&quot; AnchorPane.topAnchor=&quot;241.0&quot;&gt;
                                   &lt;padding&gt;
                                      &lt;Insets bottom=&quot;10.0&quot; left=&quot;10.0&quot; right=&quot;10.0&quot; top=&quot;10.0&quot; /&gt;
                                   &lt;/padding&gt;
                                   &lt;opaqueInsets&gt;
                                      &lt;Insets /&gt;
                                   &lt;/opaqueInsets&gt;
                                   &lt;buttons&gt;
                                    &lt;Button fx:id=&quot;login&quot; lineSpacing=&quot;10.0&quot; maxHeight=&quot;-Infinity&quot; maxWidth=&quot;-Infinity&quot; minHeight=&quot;-Infinity&quot; minWidth=&quot;-Infinity&quot; mnemonicParsing=&quot;false&quot; onAction=&quot;#makeLogin&quot; prefHeight=&quot;35.0&quot; prefWidth=&quot;197.0&quot; text=&quot;Log In&quot;&gt;
                                         &lt;padding&gt;
                                            &lt;Insets bottom=&quot;10.0&quot; left=&quot;10.0&quot; right=&quot;10.0&quot; top=&quot;10.0&quot; /&gt;
                                         &lt;/padding&gt;
                                      &lt;/Button&gt;
                                   &lt;/buttons&gt;
                                &lt;/ButtonBar&gt;
                             &lt;/children&gt;
                          &lt;/AnchorPane&gt;
                       &lt;/children&gt;
                       &lt;padding&gt;
                          &lt;Insets bottom=&quot;20.0&quot; left=&quot;20.0&quot; right=&quot;20.0&quot; top=&quot;20.0&quot; /&gt;
                       &lt;/padding&gt;
                       &lt;effect&gt;
                          &lt;DropShadow blurType=&quot;GAUSSIAN&quot; /&gt;
                       &lt;/effect&gt;
                    &lt;/VBox&gt;
                 &lt;/children&gt;
                 &lt;VBox.margin&gt;
                    &lt;Insets /&gt;
                 &lt;/VBox.margin&gt;
              &lt;/AnchorPane&gt;
           &lt;/children&gt;
        &lt;/VBox&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt;
  </code></pre>
  <p>MOdel:</p>
  <pre><code>package gload.model;
  
  import java.io.File;
  import java.io.FileNotFoundException;
  import java.util.Scanner;
  
  public class Login {
  
  
      private String user;
  
      private String password;
  
      public String getUser() {
          return user;
      }
  
      public void setUser(String user) {
          this.user = user;
      }
  
      public String getPassword() {
          return password;
      }
  
      public void setPassword(String password) {
          this.password = password;
      }
      public boolean grantAccess ;
  
  
      public boolean login(String usr, String passwd) {
          String username = usr;
          String pass = passwd;
          File userdata = new File(&quot;users.txt&quot;);//When Clicked on Login
          System.out.println(&quot;File Opened&quot;);
          try {
              Scanner read = new Scanner(userdata);
              int i=0; // count how many lines in the file
              while(read.hasNextLine()){
                  i++;
                  //loop through every line in the file and check against the user name &amp; password (Saved in Pairs of lines)
                  if(read.nextLine().equals(username)){ // if the same user name
                      System.out.println(&quot;Read &quot; + i +  &quot; Line&quot;);
                      i++;
                      if(read.nextLine().equals(pass)){ // check password
                          grantAccess = true ; // if also same, change boolean to true
                          System.out.println(&quot;Read &quot; + i +  &quot; Line&quot;);
                          i++;
                          break; // and break the for-loop
                      }else{
                          grantAccess = false;
                      }
                  }
              }
              read.close();
              System.out.println(&quot;File Closed&quot;);
          }catch (FileNotFoundException e) {
  
              System.out.println(&quot;Error : DATABASE ACCESS ERROR!&quot;);
  
              e.printStackTrace();
          }
  
  
          return grantAccess;
      }
  
  }
  
  </code></pre>
  <p>Controller:</p>
  <pre><code>package gload.controllers;
  
  import gload.model.Login;
  import gload.utils.SceneLoader;
  import javafx.event.ActionEvent;
  import javafx.fxml.FXML;
  import javafx.fxml.Initializable;
  import javafx.scene.Node;
  import javafx.scene.control.Alert;
  import javafx.scene.control.Button;
  import javafx.scene.control.PasswordField;
  import javafx.scene.control.TextField;
  import javafx.scene.input.KeyCode;
  import javafx.scene.input.KeyEvent;
  import javafx.stage.Stage;
  
  import java.io.IOException;
  import java.net.URL;
  import java.util.ResourceBundle;
  
  
  public class LoginScreenctrl implements Initializable {
  
      private Login model;
  
  
      public LoginScreenctrl(){
          this.model = model;
      }
  
      @FXML
      private ResourceBundle resources;
  
      @FXML
      private URL location;
  
  
      @FXML
      public TextField user;
  
      @FXML
      private PasswordField password;
  
  
      @FXML
      private Button login;
  
      public String getUser() {
          return model.getUser();
      }
  
      public void setUser(String user) {
          model.setUser(user);
      }
  
      public String getPassword() {
          return model.getPassword();
      }
  
      public void setPassword(String password) {
          model.setPassword(password);
      }
  
      public void enter(KeyEvent keyEvent) {                                                  //to login with enter button on password field
          if (keyEvent.getCode().equals(KeyCode.ENTER)) {
              login.fire();
          }
      }
  
          @FXML
          public void makeLogin(ActionEvent  event) throws IOException {   //This method gets triggered and check the value with the database to grant
  
              String username = user.getText();
              String pass = password.getText();
              model.login(username , pass);
              if(model.grantAccess = true){
                  // let the user continue
                  // and do other stuff, for example: move to next window ..etc
                  SceneLoader.loadscene(&quot;/gload/views/main/welcome.fxml&quot; ,
                          (Stage)((Node) event.getSource()).getScene().getWindow());
  
              }
              else{
                  // return Alert message to notify the deny
                  //display error
                  Alert dialog = new Alert(Alert.AlertType.ERROR);
                  dialog.setTitle(&quot;Not able to Login&quot;);
                  dialog.setHeaderText(&quot;Incorrect Username or Password&quot;);
                  dialog.setContentText(&quot;You have entered incorrect username or Password.\nPlease try Again&quot;);
                  dialog.showAndWait();
              }
  
      }
  
  
      @Override
      public void initialize(URL url, ResourceBundle resourceBundle) {
  
  
      }
  
  
  
  
  }
  
  
  </code></pre>
  <p>Main Class:</p>
  <pre><code>package gload;
  
  import javafx.application.Application;
  import javafx.fxml.FXMLLoader;
  import javafx.scene.Parent;
  import javafx.scene.Scene;
  import javafx.stage.Stage;
  
  
  import java.util.Objects;
  
  public class Main extends Application {
  
      @Override
      public void start(Stage primaryStage) throws Exception{
          Parent root = FXMLLoader.load(Objects.requireNonNull(getClass().getResource(&quot;views/main/loginscreen.fxml&quot;)));
          primaryStage.setTitle(&quot;GLOAD&quot;);
          primaryStage.setScene(new Scene(root, 1280, 720));
          primaryStage.show();
      }
  
  
      public static void main(String[] args) {
          launch(args);
      }
  }
  </code></pre>
  <p>Stack Trace</p>
  <pre><code>Exception in thread &quot;JavaFX Application Thread&quot; java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      at javafx.fxml/javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1862)
      at javafx.fxml/javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1729)
      at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
      at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
      at javafx.base/javafx.event.Event.fireEvent(Event.java:198)
      at javafx.graphics/javafx.scene.Node.fireEvent(Node.java:8889)
      at javafx.controls/javafx.scene.control.Button.fire(Button.java:203)
      at javafx.controls/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:208)
      at javafx.controls/com.sun.javafx.scene.control.inputmap.InputMap.handle(InputMap.java:274)
      at javafx.base/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:247)
      at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
      at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
      at javafx.base/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at javafx.base/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at javafx.base/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at javafx.base/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at javafx.base/com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at javafx.base/com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.base/javafx.event.Event.fireEvent(Event.java:198)
      at javafx.graphics/javafx.scene.Scene$MouseHandler.process(Scene.java:3856)
      at javafx.graphics/javafx.scene.Scene.processMouseEvent(Scene.java:1851)
      at javafx.graphics/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2584)
      at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:409)
      at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:299)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:447)
      at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:412)
      at javafx.graphics/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:446)
      at javafx.graphics/com.sun.glass.ui.View.handleMouseEvent(View.java:556)
      at javafx.graphics/com.sun.glass.ui.View.notifyMouse(View.java:942)
      at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
      at java.base/java.lang.Thread.run(Thread.java:831)
  Caused by: java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:76)
      at jdk.internal.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at javafx.base/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:273)
      at javafx.fxml/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:83)
      at javafx.fxml/javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1857)
      ... 50 more
  Caused by: java.lang.NullPointerException: Cannot invoke &quot;gload.model.Login.login(String, String)&quot; because &quot;this.model&quot; is null
      at gload/gload.controllers.LoginScreenctrl.makeLogin(LoginScreenctrl.java:96)
      ... 61 more
  
  </code></pre>