org.hibernate.exception.GenericJDBCException: Cannot open connection

Hibernate JIRA | jean jj | 8 years ago
  1. 0

    Informix7.2, jdk1.5, Informix Dialect Version 2.21JC5, Hibernate3.3 Hi I am using Hibernate 3 with JDK1.5 and Informix 7.2 and driver version 2.21JC5 But it shows the error seems not support informix7.2 The Error is org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) . . . . org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) . . . . Caused by: java.sql.SQLException: Transactions not supported at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:349) at com.informix.jdbc.IfxSqliConnect.setAutoCommit(IfxSqliConnect.java:1627) at com.mchange.v2.c3p0.impl.NewProxyConnection.setAutoCommit(NewProxyConnection.java:881) at org.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:61) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423) ... 116 more hibernate.cfg.xml <hibernate-configuration> <session-factory> <property name="dialect">org.hibernate.dialect.InformixDialect</property> <property name="connection.driver_class">com.informix.jdbc.IfxDriver</property> <property name="connection.url">jdbc:informix-sqli://xxx.xxx.xxx.xxx:8347/dbname:INFORMIXSERVER=dbSERVER</property> <property name="connection.username">xxx</property> <property name="connection.password">xxxxx</property> <property name="show_sql">true</property> <property name="hibernate.c3p0.min_size">2</property> <property name="hibernate.c3p0.max_size">20</property> <property name="hibernate.c3p0.timeout">1800</property> <property name="hibernate.c3p0.max_statements">50</property> <!--jdbcTest --> <mapping resource="hibernateDB/informix/JdbcTest.hbm.xml"/> </session-factory> </hibernate-configuration>

    Hibernate JIRA | 8 years ago | jean jj
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  2. 0

    Informix7.2, jdk1.5, Informix Dialect Version 2.21JC5, Hibernate3.3 Hi I am using Hibernate 3 with JDK1.5 and Informix 7.2 and driver version 2.21JC5 But it shows the error seems not support informix7.2 The Error is org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) . . . . org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) . . . . Caused by: java.sql.SQLException: Transactions not supported at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:349) at com.informix.jdbc.IfxSqliConnect.setAutoCommit(IfxSqliConnect.java:1627) at com.mchange.v2.c3p0.impl.NewProxyConnection.setAutoCommit(NewProxyConnection.java:881) at org.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:61) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423) ... 116 more hibernate.cfg.xml <hibernate-configuration> <session-factory> <property name="dialect">org.hibernate.dialect.InformixDialect</property> <property name="connection.driver_class">com.informix.jdbc.IfxDriver</property> <property name="connection.url">jdbc:informix-sqli://xxx.xxx.xxx.xxx:8347/dbname:INFORMIXSERVER=dbSERVER</property> <property name="connection.username">xxx</property> <property name="connection.password">xxxxx</property> <property name="show_sql">true</property> <property name="hibernate.c3p0.min_size">2</property> <property name="hibernate.c3p0.max_size">20</property> <property name="hibernate.c3p0.timeout">1800</property> <property name="hibernate.c3p0.max_statements">50</property> <!--jdbcTest --> <mapping resource="hibernateDB/informix/JdbcTest.hbm.xml"/> </session-factory> </hibernate-configuration>

    Hibernate JIRA | 8 years ago | jean jj
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  3. 0

    Programmatic hibernate configuration after xml configuration

    Stack Overflow | 6 years ago | lali
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate StatelessSession, "the statement is closed" exception

    Stack Overflow | 4 years ago | nag
    org.hibernate.exception.GenericJDBCException: could not insert: [com.manam.mobee.persist.entity.TempCustomers]
  6. 0

    Openbravo Business Suite / Discussion / Help:Batch entry 0 insert into I_Order

    sourceforge.net | 1 year ago
    org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update

    4 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. org.hibernate.exception.GenericJDBCException

      Cannot open connection

      at org.hibernate.exception.SQLStateConverter.handledNonSpecificException()
    2. Hibernate
      JDBCExceptionHelper.convert
      1. org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
      2. org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
      3. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      3 frames