Well, the first hint would be the exception itself, which you did not specify here.
I would recommend using executeUpdate() which returns the number of rows affected instead of executeQuery(), which return a result set.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Offline 6,761 posts
since May 2007