SQLException « Cursor « Java Database Q&A





1. java.sql.SQLException:invalid cursor state: identified cursor is not open identified cursor is not open    stackoverflow.com

I am using Apache DBCP to get a pool of connections, I use PoolingDataSource to get a connection each time. It works well when I insert an object into the database, ...

2. SQLException invalid cursor    coderanch.com

post the relevant code (life of the statement and resultset) and it will be easier to help you with a minimum amount of speculation. Jamie This is what oracle says: "ORA-01001: invalid cursor Cause: Either a host language program call specified an invalid cursor or the values of the AREASIZE and MAXOPENCURSORS options in the precompiler command were too small. All ...

3. java.sql.SQLException: ORA-01000: maximum open cursors exceeded    coderanch.com

I have checked with DBA, 1000 Cursor are allowed. While checking I found that if we close the Prepared statement, then there is no need to close the Result Set. Also we are using the same connection Object, through out the process and we are hitting very huge database. i mean number of insert, update statements are very large. I am ...

4. java.sql.SQLException: ORA-01000: maximum open cursors exceeded ?    coderanch.com

I have a whole bunch of records to insert into this table. I want to insert all the records and need setAutoCommit to be false since I need all the records to be inserted all at the same time using commit or rollback ,..etc. I have a while loop that creates a preparedstatement and does executeUpdate() something like this while( rs.next() ...

5. SQLException: maximum open cursors exceeded    forums.oracle.com

14:36:02,111 ERROR [STDERR] java.sql.SQLException: ORA-01000: maximum open cursors exceeded 14:36:02,111 ERROR [STDERR] at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) 14:36:02,111 ERROR [STDERR] at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) 14:36:02,111 ERROR [STDERR] at oracle.jdbc.ttc7.Oopen.receive(Oopen.java:120) 14:36:02,111 ERROR [STDERR] at oracle.jdbc.ttc7.TTC7Protocol.open(TTC7Protocol.java:586) 14:36:02,127 ERROR [STDERR] at oracle.jdbc.driver.OracleStatement.(OracleStatement.java:385) 14:36:02,127 ERROR [STDERR] at oracle.jdbc.driver.OracleConnection.privateCreateStatement(OracleConnection.java:772) 14:36:02,127 ERROR [STDERR] at oracle.jdbc.driver.OracleConnection.createStatement(OracleConnection.java:712) 14:36:02,127 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrappedConnection.createStatement(WrappedConnection.java:145) 14:36:02,127 ERROR [STDERR] at abcd.updateMethod(abcd.java:1605) 14:36:02,127 ERROR [STDERR] at servlet.abcdServlet.doPost(abcdServlet.java:62) 14:36:02,127 ERROR ...