| Author |
Invalid operation for forward only resultset : beforeFirst
|
Carl Zeigler
Greenhorn
Joined: Mar 09, 2010
Posts: 5
|
|
Hi,
I have been struggling with this all day.
I am using the most recent version of Eclipse, JDK 1.6, ojdb6.jar, and my database is Oracle 9.2.0.1.0.
I am trying to use a scrollable resultset but cannot call the resultset.beforeFirst() method. I have tried using classes12.jar, ojdbc4.jar and ojdbc6.jar. I have tried to make sure that all columns were included in the select statement to ensure there was not an issue with the primary key.
No matter what I do, I cannot get the resultset to use either TYPE_SCROLL_INSENSITIVE or TYPE_SCROLL_SENSITIVE.
Any suggestions would be very much appreciated.
This is what I am trying to use which is causing the exception below. I want to reset the cursor position before the break.
|
 |
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2343
|
|
Hi Carl,
Please Use Code Tags. They make your post easier to read.
You can edit your post by clicking on the Edit icon at the right top of your post.
Regards, Jan
|
OCUP UML fundamental
ITIL foundation
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16482
|
|
|
It looks like the database server has decided your query can't be made scrollable. I don't see what your query is so I can't comment on why it might have decided that. But evidently it has, the error message says as much.
|
 |
 |
|
|
subject: Invalid operation for forward only resultset : beforeFirst
|
|
|