Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invalid operation for forward only resultset : beforeFirst

 
Carl Zeigler
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Clapham
Sheriff
Pie
Posts: 20768
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic