Null pointer exceptions in Java Application configuration run.