net.sf.hibernate.exception.GenericJDBCException: Could not execute query

Atlassian JIRA | Nick Minutello | 1 decade ago
  1. 0

    We have a few issues with this re-indexing ... CONF-3977 (http://support.atlassian.com/browse/CSP-1450) and now this. Basically, when we re-index, we end up running out of cursors - get loads of the errors below: We had to set the number of open cursors limit (limit per connection) to the rather ridiculous value of 2000 before we could get a successful re-index completion. And when the re-index was completed, we had 5518 open cursors remaining... which kinda suggests some kind of leakage... So, I am not sure if the two are related... but I get the feeling they are... ======================================================= INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,560 ERROR [sf.hibernate.util.JDBCExceptionReporter] ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,560 ERROR [sf.hibernate.util.JDBCExceptionReporter] ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,560 ERROR [sf.hibernate.util.JDBCExceptionReporter] ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,560 ERROR [sf.hibernate.util.JDBCExceptionReporter] ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,561 ERROR [core.persistence.hibernate.AnyTypeHibernateObjectDao] Unable to get objects: Could not execute query INFO | jvm 1 | 2005/10/01 16:22:53 | net.sf.hibernate.exception.GenericJDBCException: Could not execute query INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:90) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:79) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.convert(SessionImpl.java:4131) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1557) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1523) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.core.persistence.hibernate.HibernateEntityObjectQueue.getObjects(HibernateEntityObjectQueue.java:84) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.core.persistence.hibernate.HibernateEntityObjectQueue.getNextObjects(HibernateEntityObjectQueue.java:54) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.search.lucene.BatchIndexingThread.getNextObject(BatchIndexingThread.java:150) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.search.lucene.BatchIndexingThread.run(BatchIndexingThread.java:40) INFO | jvm 1 | 2005/10/01 16:22:53 | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) INFO | jvm 1 | 2005/10/01 16:22:53 | at java.lang.Thread.run(Thread.java:534) INFO | jvm 1 | 2005/10/01 16:22:53 | Caused by: java.sql.SQLException: ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4C8TTILob.receiveReply(T4C8TTILob.java:815) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4C8TTILob.getLength(T4C8TTILob.java:260) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4CConnection.length(T4CConnection.java:1896) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.sql.CLOB.length(CLOB.java:184) INFO | jvm 1 | 2005/10/01 16:22:53 | at org.springframework.jdbc.support.lob.OracleLobHandler.getClobAsString(OracleLobHandler.java:184) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.util.BucketClobStringType.nullSafeGet(BucketClobStringType.java:120) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.type.CustomType.nullSafeGet(CustomType.java:92) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:67) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.hydrate(Loader.java:690) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.loadFromResultSet(Loader.java:631) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:590) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.getRow(Loader.java:505) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.getRowFromResultSet(Loader.java:218) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.doQuery(Loader.java:285) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.doList(Loader.java:1063) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.list(Loader.java:1054) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554) INFO | jvm 1 | 2005/10/01 16:22:53 | ... 8 more

    Atlassian JIRA | 1 decade ago | Nick Minutello
    net.sf.hibernate.exception.GenericJDBCException: Could not execute query
  2. 0

    We have a few issues with this re-indexing ... CONF-3977 (http://support.atlassian.com/browse/CSP-1450) and now this. Basically, when we re-index, we end up running out of cursors - get loads of the errors below: We had to set the number of open cursors limit (limit per connection) to the rather ridiculous value of 2000 before we could get a successful re-index completion. And when the re-index was completed, we had 5518 open cursors remaining... which kinda suggests some kind of leakage... So, I am not sure if the two are related... but I get the feeling they are... ======================================================= INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,560 ERROR [sf.hibernate.util.JDBCExceptionReporter] ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,560 ERROR [sf.hibernate.util.JDBCExceptionReporter] ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,560 ERROR [sf.hibernate.util.JDBCExceptionReporter] ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,560 ERROR [sf.hibernate.util.JDBCExceptionReporter] ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | 2005-10-01 16:22:53,561 ERROR [core.persistence.hibernate.AnyTypeHibernateObjectDao] Unable to get objects: Could not execute query INFO | jvm 1 | 2005/10/01 16:22:53 | net.sf.hibernate.exception.GenericJDBCException: Could not execute query INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:90) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:79) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.convert(SessionImpl.java:4131) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1557) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1523) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.core.persistence.hibernate.HibernateEntityObjectQueue.getObjects(HibernateEntityObjectQueue.java:84) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.core.persistence.hibernate.HibernateEntityObjectQueue.getNextObjects(HibernateEntityObjectQueue.java:54) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.search.lucene.BatchIndexingThread.getNextObject(BatchIndexingThread.java:150) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.search.lucene.BatchIndexingThread.run(BatchIndexingThread.java:40) INFO | jvm 1 | 2005/10/01 16:22:53 | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) INFO | jvm 1 | 2005/10/01 16:22:53 | at java.lang.Thread.run(Thread.java:534) INFO | jvm 1 | 2005/10/01 16:22:53 | Caused by: java.sql.SQLException: ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | ORA-01000: maximum open cursors exceeded INFO | jvm 1 | 2005/10/01 16:22:53 | INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4C8TTILob.receiveReply(T4C8TTILob.java:815) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4C8TTILob.getLength(T4C8TTILob.java:260) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.jdbc.driver.T4CConnection.length(T4CConnection.java:1896) INFO | jvm 1 | 2005/10/01 16:22:53 | at oracle.sql.CLOB.length(CLOB.java:184) INFO | jvm 1 | 2005/10/01 16:22:53 | at org.springframework.jdbc.support.lob.OracleLobHandler.getClobAsString(OracleLobHandler.java:184) INFO | jvm 1 | 2005/10/01 16:22:53 | at bucket.util.BucketClobStringType.nullSafeGet(BucketClobStringType.java:120) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.type.CustomType.nullSafeGet(CustomType.java:92) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:67) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.hydrate(Loader.java:690) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.loadFromResultSet(Loader.java:631) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:590) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.getRow(Loader.java:505) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.getRowFromResultSet(Loader.java:218) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.doQuery(Loader.java:285) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.doList(Loader.java:1063) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.loader.Loader.list(Loader.java:1054) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854) INFO | jvm 1 | 2005/10/01 16:22:53 | at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554) INFO | jvm 1 | 2005/10/01 16:22:53 | ... 8 more

    Atlassian JIRA | 1 decade ago | Nick Minutello
    net.sf.hibernate.exception.GenericJDBCException: Could not execute query
  3. 0

    java.sql.SQLException: ¹Ø±ÕµÄÁ¬½Ó_°Ù¶ÈÖªµÀ

    baidu.com | 7 months ago
    java.sql.SQLException: ¹Ø±Õ Á¬½Ó
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    oracle max cursors problem

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: ORA-01000: maximum open cursors exceeded
  6. 0

    stale db cursors

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: ORA-01000: maximum open cursors exceeded

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.sql.SQLException

      ORA-01000: maximum open cursors exceeded ORA-01000: maximum open cursors exceeded

      at oracle.jdbc.driver.DatabaseError.throwSqlException()
    2. Oracle jdbc
      CLOB.length
      1. oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
      2. oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
      3. oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
      4. oracle.jdbc.driver.T4C8TTILob.receiveReply(T4C8TTILob.java:815)
      5. oracle.jdbc.driver.T4C8TTILob.getLength(T4C8TTILob.java:260)
      6. oracle.jdbc.driver.T4CConnection.length(T4CConnection.java:1896)
      7. oracle.sql.CLOB.length(CLOB.java:184)
      7 frames
    3. Spring Framework
      OracleLobHandler.getClobAsString
      1. org.springframework.jdbc.support.lob.OracleLobHandler.getClobAsString(OracleLobHandler.java:184)
      1 frame
    4. bucket.util
      BucketClobStringType.nullSafeGet
      1. bucket.util.BucketClobStringType.nullSafeGet(BucketClobStringType.java:120)
      1 frame
    5. net.sf.hibernate
      SessionImpl.find
      1. net.sf.hibernate.type.CustomType.nullSafeGet(CustomType.java:92)
      2. net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:67)
      3. net.sf.hibernate.loader.Loader.hydrate(Loader.java:690)
      4. net.sf.hibernate.loader.Loader.loadFromResultSet(Loader.java:631)
      5. net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:590)
      6. net.sf.hibernate.loader.Loader.getRow(Loader.java:505)
      7. net.sf.hibernate.loader.Loader.getRowFromResultSet(Loader.java:218)
      8. net.sf.hibernate.loader.Loader.doQuery(Loader.java:285)
      9. net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
      10. net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
      11. net.sf.hibernate.loader.Loader.list(Loader.java:1054)
      12. net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
      13. net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554)
      14. net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531)
      15. net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1523)
      15 frames
    6. bucket.core.persistence
      HibernateEntityObjectQueue.getNextObjects
      1. bucket.core.persistence.hibernate.HibernateEntityObjectQueue.getObjects(HibernateEntityObjectQueue.java:84)
      2. bucket.core.persistence.hibernate.HibernateEntityObjectQueue.getNextObjects(HibernateEntityObjectQueue.java:54)
      2 frames
    7. bucket.search.lucene
      BatchIndexingThread.run
      1. bucket.search.lucene.BatchIndexingThread.getNextObject(BatchIndexingThread.java:150)
      2. bucket.search.lucene.BatchIndexingThread.run(BatchIndexingThread.java:40)
      2 frames
    8. Dough Lea's util.concurrent package
      PooledExecutor$Worker.run
      1. EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
      1 frame
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:534)
      1 frame