Add a call to the printStackTrace() method in the catch block to get the full text of any error messages.