• Post Reply Bookmark Topic Watch Topic
  • New Topic

SQL Exception: Invalid cursor state  RSS feed

 
duplessis van aswegen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I'm coding a simple translation program that uses a SQL database to retrieve the words from both languages and then,
when you choose a word from the list, translate it to the corresponding word in the other language.

Here's the Error:

java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state

And here's the code:



Any help would be appreciated.
Thanks.
 
duplessis van aswegen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nevermind guys I fixed it...
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36634
475
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

I assume you fixed it by adding rs.next(). If it was something else, please share so others can learn from your experience.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!