Your database
is not initialized.
Also, it's useful to examine the full stack trace. There's a "caused by" exception nested in the RuntimeException
. Double-clicking a stacktrace row in your IDE would show exactly the line of code where the problem occurs.