You've got empty 'catch' clauses in your code. Just never, ever do that. Put a 'e.printStackTrace()' in there, or don't catch the Exceptions (where that's allowed by the signature of the method...