First and foremost -- don't leave your catch blocks empty, else how will the JVM be able to let you know what problems might be occurring. At least print a stacktrace or else log the stacktrace.