org.springframework.orm.hibernate3.HibernateJdbcException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I'm developing an application that uses spring social to integrate with facebook application. My data layer is using spring data jpa and a usual LocalContainerEntityManagerFactoryBean. The problem is that every transactional method that actively uses the facebook connection can't be executed because the JdbcConnectionRepository that uses the same datasource closes the connection and hence everything fails. The Exception raised is: [org.springframework.transaction.interceptor.TransactionInterceptor.completeTransactionAfterThrowing:408] Application exception overridden by rollback exception org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [insert into ....]; SQL state [null]; error code [0]; could not prepare statement; nested exception is org.hibernate.exception.GenericJDBCException: could not prepare statement at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:651) ... Caused by: org.hibernate.exception.GenericJDBCException: could not prepare statement at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54) ... Caused by: java.sql.SQLException: Connection is closed. at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.checkOpen(PoolingDataSource.java:185) As a workaround I created a new connection pooler using a duplicate datasource, but it's a worthless complication and an integration with the usual transaction mechanism managed by spring would be ideal.
    via by Alex,
  • I'm developing an application that uses spring social to integrate with facebook application. My data layer is using spring data jpa and a usual LocalContainerEntityManagerFactoryBean. The problem is that every transactional method that actively uses the facebook connection can't be executed because the JdbcConnectionRepository that uses the same datasource closes the connection and hence everything fails. The Exception raised is: [org.springframework.transaction.interceptor.TransactionInterceptor.completeTransactionAfterThrowing:408] Application exception overridden by rollback exception org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [insert into ....]; SQL state [null]; error code [0]; could not prepare statement; nested exception is org.hibernate.exception.GenericJDBCException: could not prepare statement at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:651) ... Caused by: org.hibernate.exception.GenericJDBCException: could not prepare statement at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54) ... Caused by: java.sql.SQLException: Connection is closed. at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.checkOpen(PoolingDataSource.java:185) As a workaround I created a new connection pooler using a duplicate datasource, but it's a worthless complication and an integration with the usual transaction mechanism managed by spring would be ideal.
    via by Alex,
  • Hibernate Interrupted Exception
    via Stack Overflow by Mike Flynn
    ,
  • Hibernate Interrupted Exception
    via by Unknown author,
    • org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [insert into ....]; SQL state [null]; error code [0]; could not prepare statement; nested exception is org.hibernate.exception.GenericJDBCException: could not prepare statement at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:651)

    Users with the same issue

    linxiaolonglinxiaolong
    1 times, last one,
    PizPiz
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,