File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes SQLException error in my code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "SQLException error in my code" Watch "SQLException error in my code" New topic

SQLException error in my code

Kgosietsile motlhokomedi

Joined: Oct 18, 2010
Posts: 1
I am trying to compile code in java which gives me an error: java.sql.SQLException: Invalid handle any advice? the code is attached below

[moderator edit: created a title]
Jan Cumps

Joined: Dec 20, 2006
Posts: 2562

Welcome to JavaRanch, Kgosietsile .
We don't see your attached code.
Can you show it to us, and the complete error message?

(I am moving this post to our JDBC forum, as it is about SQL Exceptions)

OCUP UML fundamental and ITIL foundation
I agree. Here's the link:
subject: SQLException error in my code
It's not a secret anymore!