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

Invalid cursor state

 
Ankitt Gupta
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


It is givng the output as

Connection Estabilished Exception in thread main java.sql.SQLException: [ODBC DriverManager] Invalid cursor state......

 
Ankitt Gupta
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The database is in Ms Access


Name Address Roll
Ankit Kolkata 1
Gupta Delhi 2
Sachin Mumbai 3
 
Aurelian Tutuianu
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Third field is numeric? Maybe that's why. Sometimes the messages from jdbc drivers are not a hell of a help.
 
Ankitt Gupta
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i changed it to text but no avail.Please help
 
Ankitt Gupta
Ranch Hand
Posts: 101
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got it fixed....by mistake i put semi colon in while loop...ah so silly
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic