Replaced  printStackTrace() with JUL statement.
Replaced printStackTrace with exception.