File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes NullPointerException while closing PreparedStatement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "NullPointerException while closing PreparedStatement" Watch "NullPointerException while closing PreparedStatement" New topic

NullPointerException while closing PreparedStatement

Jay Mehta

Joined: Feb 04, 2003
Posts: 4
I get this error while I close a PreparedStatement. I have checked to see if the PreparedStatement was null before calling close on it, It is not null yet an error is thrown.My connection is also valid and this error is thrown sometimes.Can somebody help??
at oracle.jdbc.dbaccess.DBData.clearIt(DBData.jav(Compiled Code))
at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(
at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(
at Code))
at Code))
Karan V Praba
Ranch Hand

Joined: Oct 31, 2002
Posts: 41
Hai Buddy,
Can u place the code.............?
I agree. Here's the link:
subject: NullPointerException while closing PreparedStatement
jQuery in Action, 3rd edition