Also, instead of "e.printStaceTrace();", use "LOG.error(e.getMessage(), e);"