Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connections that won't close

 
prem saggar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone. I've got an interesting problem. When I try to close a Database Connection to a connection pool I'm using, I get an "Invalid Cursor" exception, and I'm not able to close the connection! Any help is greatly appreciated. I've seen "Invalid Cursor" exceptions before, but never to strictly close a Connection! For all kind readers, I tried to keep the post short, but if you need any more information, just let me know and I'll respond quickly. Thank you for all your time.
 
arnel nicolas
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi prem,

what database are you using? I got the same error for MS SQL. What i did is to add "SelectMethod=Cursor" in the URL connection of my JDBC config. I got this info from the MS site.
[ July 30, 2004: Message edited by: arnel nicolas ]
 
prem saggar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Arnel. I'm using Oracle 9i here. Changing your DB parameter fixed this? We are so confused on this one.
 
prem saggar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh by the way Arnel, what do you mean by the URL connection of my JDBC config? Is that the string you pass to DriverManager.getConnection(String url)? Could you give me an example of what you did? Thanks so much, Prem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic