You might be executing some query in your application and even though that you verified all the connection parameters like connection URL to the database, username and password, and the SQL statement that you fired, and that data also resides in the database in proper table. Yet resultSet.next() is always returning false.
The retrieved resultSet actually points initially to a location before the actual data index, so with first resultSet.next() call, the resultSet pointer now points to the first fetched record in the database. This is ridiculous and had wasted more time. Actually I failed tocommit the data after inserting into the table. Without committing, that data never is written to the database schema. So check, did you really do a
SQL> commit;
After scorching my head for over hours for these 7 characters of wisdom ( c-o-m-m-i-t-; ), I unleashed the forgotten thing: DML commands need to be committed/rolled-back for changes to take effect.




