Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Connections that won't close

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic