Don't ever do that. Use proper logging if you want to log an exception: log.error("Failed to load installation properties: " + propertiesPath, ex);