Don't eat exceptions. At the very least, print the stack trace.
catch (Exception error) {
error.printStackTrace();
}Also, it's never recommended to catch Exception but rather the specific...