Results 1 to 1 of 1
  1. #1
    Join Date
    Oct 2005

    Unanswered: Problem trying to execute query

    I have a class created specially for mysql DB connection ( and i have a servlet ( for login and it is where the query is to be execute. But sadly, it gives me error "NullpointerException" (Error.gif) and point to the line of code "PreparedStatement ps = conn.prepareStatement(sql);"

    And now i dunno what's wrong, can someone help?

    1) I'm not sure if i using the correct driver and url for my DB, but i tested it before and it connected. Check out
    2) Don't know if there is/are anything wrong with the codes, refer to

    All required information are in the attachment (

    Thanks in advance.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts