Solved

java.sql.SQLException: Invalid Cursor position

Posted on 2010-11-24
5
1,513 Views
Last Modified: 2012-05-10
Please tell me How to reset the cachedrowset cursor posotion in java
0
Comment
Question by:Karthik28071981
  • 3
5 Comments
 
LVL 11

Accepted Solution

by:
Bruce Smith earned 500 total points
ID: 34210737
crs.beforeFirst();
0
 
LVL 11

Expert Comment

by:Bruce Smith
ID: 34210744
I'd have to see more code to see exactly why you're getting this error. But the .beforeFirst() method will set the cursor position at the beginning so you can re-loop through your cachedrowset object.

Cheers
0
 
LVL 11

Expert Comment

by:Bruce Smith
ID: 34276175
Did this help solve your problem?
0
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 37471905
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question