Solved

java.sql.SQLException: Invalid Cursor position

Posted on 2010-11-24
5
1,415 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:
patsmitty earned 500 total points
ID: 34210737
crs.beforeFirst();
0
 
LVL 11

Expert Comment

by:patsmitty
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:patsmitty
ID: 34276175
Did this help solve your problem?
0
 
LVL 26

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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now