File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Closing a statement you left open, please do your own housekeeping

 
jaya kemmannu
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am getting SQL Exception : "Closing a statement you left open, please do your own housekeeping" . I am properly closing Result Set, Statement, Prepared Statement and Connection in my code. I am confused where the connection is left open :( .

Exception Stack Trace :

2011-10-13 10:19:31,484 WARN [org.jboss.resource.adapter.jdbc.WrappedConnection] Closing a statement you left open, please do your own housekeeping
java.lang.Throwable: STACKTRACE
at org.jboss.resource.adapter.jdbc.WrappedConnection.registerStatement(WrappedConnection.java:576)
at org.jboss.resource.adapter.jdbc.WrappedStatement.<init>(WrappedStatement.java:62)
at org.jboss.resource.adapter.jdbc.WrappedConnection.createStatement(WrappedConnection.java:145)
at com.mnp.ossbss.dao.OSSBSSAdapterInsertRecordDAO.updatePortInAck(Unknown Source)
at com.mnp.ossbss.process.InsertPortInMessages.ProcessPortInAck(Unknown Source)
at com.mnp.ossbss.webservice.ProcessOSSBSSMessage.processGenericMessage(Unknown Source)
at com.mnp.ossbss.webservice.ProcessOSSBSSMessage.executeMessage(Unknown Source)
at com.np.sig.npwsimpl.HpnpOssBssAdapterServiceSkeleton.processRequest(Unknown Source)
at com.np.mwfm.modules.SIGWebServiceModule.invoke(SIGWebServiceModule.java:202)
at com.np.mwfm.NPWebServiceNode.nodeEntered(NPWebServiceNode.java:264)
at com.ov.activator.mwfm.engine.WFMEngineWorker._step1(WFMEngineWorker.java:830)
at com.ov.activator.mwfm.engine.WFMEngineWorker.access$300(WFMEngineWorker.java:107)
at com.ov.activator.mwfm.engine.WFMEngineWorker$8.run(WFMEngineWorker.java:1349)
at com.ov.activator.mwfm.engine.EngineWorkerThread.run(EngineWorkerThread.java:90)

Code :



Any guidance on fixing this would really help

Thanks and Reagrds,
Jay





 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic