We need to know more, where is this error occurring specifically? To get the full detail of the error, put e.printStackTrace() instead of System.out.println(e) in your catch statements.

The try...