Normal
Maybe your actual question is the following: Why is the exception not being caught by the try-catch block surrounding the code. And the answer is simple: The click action handler will be executed asynchronously by the JavaFX event loop when you click the button. So the method where you put all that code into has long exited when the button click handler executes.