Solved

java.sql.SQLException: Invalid Cursor position

Posted on 2010-11-24
5
1,469 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

777 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