You should integrate logging into your application, which can be turned on or off at runtime, or set to different Logger level, depending on what you want to see. For example, you should output to log the result set from your ResultSet rs = stmt.executeQuery("Select * from customers"); call. At this point, you do not know if you are getting any rows returned at all, or if there is an SQLErrorCode.