In Step 2, when the database can't be connected it shows java exception stacktrace.