Just encountered a problem where somehow DRUID_PORT env variable contained a string value, instead of an integer. This failed with a very unclear error message:
java.lang.NoClassDefFoundError: Could not initialize class ing.wbaa.druid.DruidConfig$ java.lang.NullPointerException
Better exception handling could prevent this confusion in the future