Please post the full text of the error message.
Change the code by adding a call to printStackTrace in the catch block so you get the FULL error message