The line persistenceProperties.load(is);
is throwing a nullpointerexception
in the following method. How can I resolve this error?
Your IDE works with two different scopes:
Seems you are trying to execute you program from production scope, while persistence.properties file is placed into test scope.
How to fix: