Don't use printStackTrace but Logger.log in the debugging try-catch.