Thread: no connection
View Single Post
  #12 (permalink)  
Old 12-29-2007, 04:50 AM
wsaryada wsaryada is offline
Senior Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 102
wsaryada is on a distinguished road
Hello, have you solve the problem?

As cazrin said, you can put something like e.printStackTrace() in your catch block, so it will print the error message when something is happening.

The NPE could be caused by the connection, but prior to that what make the connection null in the first place. It could be the database name is wrong, the user name or password to connection to database might be invalid, or event the database is not running.
__________________
Website:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Blog:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote