It's not a secret anymore!*
The moose likes JDBC and the fly likes Invalid cursor state Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Invalid cursor state" Watch "Invalid cursor state" New topic
Author

Invalid cursor state

jan frank
Greenhorn

Joined: Jul 31, 2005
Posts: 5
Hi,

Any suggestions & solutions about this elusive error message? [Microsoft][ODBC Driver Manager] Invalid cursor state.
This is the bit of code that gives that error:



Thanks
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

while (rs.next()) {
System.out.println(rs1.getString("welcome_note"));
}


Which result set are we referring to?
jan frank
Greenhorn

Joined: Jul 31, 2005
Posts: 5
oops! the resultset should have been rs1 not rs.
I resolved the problem
 
Consider Paul's rocket mass heater.
 
subject: Invalid cursor state
 
Similar Threads
two dropdown menus
jsp:compare select statement error
Error in rs
Help with JSP Page
I M NOT ABLE TO DEFINE VARIABLES IN JSP.