Another observation on the code: TOO many empty catch blocks!!!
You should ALWAYS call the printStackTrace() method in a catch block to get the full text of any errors that happened.