fixed by removing e.printStackTrace() and just throwing a wrapped exception. No need to log and throw.