Solved

java.sql.SQLException: Invalid Cursor position

Posted on 2010-11-24
5
1,565 Views
Last Modified: 2012-05-10
Please tell me How to reset the cachedrowset cursor posotion in java
0
Comment
Question by:Karthik28071981
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues undeā€¦
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ā€¦
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

705 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