• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

NullPointerException while closing PreparedStatements

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
java.lang.NullPointerException
at oracle.jdbc.dbaccess.DBData.clearIt(DBData.jav(Compiled Code))
at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:2154)
at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(OraclePreparedStatement.java:2594)
at com.ibm.ejs.cm.cache.CachedStatement.clearParameters(CachedStatement.java)
at com.ibm.ejs.cm.cache.StatementCache.releaseStatement(StatementCache.java)
at com.ibm.ejs.cm.cache.CachedStatement.close(CachedStatement.java)
at com.ibm.ejs.cm.proxy.StatementProxy.__close(StatementProxy.java(Compiled Code))
at com.ibm.ejs.cm.proxy.StatementProxy.close(StatementProxy.java(Compiled Code))
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic