• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resultset Exception

 
asit dhal
Greenhorn
Posts: 13
C++ Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just go through the following code...



Can somebody tell me the reason the following exception in the above code ??

java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(Unknown Source)
at Main.main(Main.java:49)
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You seem to be connecting to Oracle using ODBC driver. Stop doing that, use the Oracle's JDBC driver (the JdbcOdbcDriver's documentation itself says you should use target database's JDBC driver if available). I'd be only a bit surprised if this resolves your error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic