org.hibernate.exception.GenericJDBCException: Cannot open connection

Hibernate JIRA | Mohammed Hanifa | 1 decade ago
  1. 0

    Hi I am using Hibernate 3 with JDK1.5 and Informix 9.4 and driver version 2.21JC5 But it shows the error seems not support informix9.4 The Error is org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:82) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:70) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:301) at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:110) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:137) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49) at org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24) at org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:271) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1079) at com.pa.cricket.daoimpl.PlayerDAOImpl.findAllPlayers(PlayerDAOImpl.java:46) at com.pa.cricket.bl.Test.main(Test.java:31) Caused by: java.sql.SQLException: Transactions not supported at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:355) at com.informix.jdbc.IfxSqliConnect.setAutoCommit(IfxSqliConnect.java:1714) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:112) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:298) ... 8 more

    Hibernate JIRA | 1 decade ago | Mohammed Hanifa
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  2. 0

    Hi I am using Hibernate 3 with JDK1.5 and Informix 9.4 and driver version 2.21JC5 But it shows the error seems not support informix9.4 The Error is org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:82) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:70) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:301) at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:110) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:137) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49) at org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24) at org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:271) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1079) at com.pa.cricket.daoimpl.PlayerDAOImpl.findAllPlayers(PlayerDAOImpl.java:46) at com.pa.cricket.bl.Test.main(Test.java:31) Caused by: java.sql.SQLException: Transactions not supported at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:355) at com.informix.jdbc.IfxSqliConnect.setAutoCommit(IfxSqliConnect.java:1714) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:112) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:298) ... 8 more

    Hibernate JIRA | 1 decade ago | Mohammed Hanifa
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    9 unregistered visitors
    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

      Transactions not supported

      at com.informix.util.IfxErrMsg.getSQLException()
    2. com.informix.util
      IfxErrMsg.getSQLException
      1. com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:355)
      1 frame
    3. com.informix.jdbc
      IfxSqliConnect.setAutoCommit
      1. com.informix.jdbc.IfxSqliConnect.setAutoCommit(IfxSqliConnect.java:1714)
      1 frame
    4. Hibernate
      DriverManagerConnectionProvider.getConnection
      1. org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:112)
      1 frame
    5. Hibernate
      JDBCContext.beginTransaction
      1. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:298)
      2. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:110)
      3. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:137)
      4. org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49)
      5. org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24)
      6. org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:271)
      6 frames
    6. Hibernate
      SessionImpl.beginTransaction
      1. org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1079)
      1 frame
    7. com.pa.cricket
      Test.main
      1. com.pa.cricket.daoimpl.PlayerDAOImpl.findAllPlayers(PlayerDAOImpl.java:46)
      2. com.pa.cricket.bl.Test.main(Test.java:31)
      2 frames