Replaced calls to Exception.printStackTrace with getLog().error.