When using the spring31 property-placeholder, if the environment variable that is defined to supply the password is missing, a NPE is thrown. I think it would make more sense if an understandable error message was given explaining the name of the env variable that is missing.