First of all, never eat (ignore) exceptions*. In other words, don't do
this:
try {
// some code
} catch (AnException e) {}
Besides that never catch Exception:
try {
// some code
} catch (Exception e) { // handle e }
In your code you are doing both together:
try {
// your code
} catch (Exception e) {}
Now your question. Please fix your code and when you catch the
exception, log its stack trace or print it to System.out. Besides that
what is your Java version (the output of java -version)?