File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes results Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "results" Watch "results" New topic


Donald Wynn

Joined: Dec 04, 2002
Posts: 29
I'm trying to see the results of a sql query but I 'm getting this error:
java.sql.SQLException: JZ0R1: Result set is IDLE as you are not currently accessing a row.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Donald,
Before calling any getXXX methods on the ResultSet, you need to call the next() method and make sure it returns true (false would mean no rows).
Alexis Cifuentes

Joined: Sep 08, 2004
Posts: 1
Gracias por su ayuda.

It is sorta covered in the JavaRanch Style Guide.
subject: results
It's not a secret anymore!