-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Closed
Copy link
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: bugA general bugA general bug
Milestone
Description
Andreas Joseph Krogh opened SPR-10395 and commented
When using Spring's JdbcTemplate inside a transactional-service with the JpaTransactionmanager and the HibernateJpaDialect an exception is thrown.
Using Hibernate-4.2.0.Final, JPA, Spring-3.2.2 and I get:
Caused by: java.sql.SQLException: PooledConnection has already been closed.
at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:86)
at com.sun.proxy.$Proxy19.commit(Unknown Source)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doCommit(JdbcTransaction.java:112)
... 44 more
This happens both with c3p0 and tomcat-pool that comes with tomcat7.
I've tested in two projects with the same results. This doesn't happen with Hibernate-4.1.x
I know i should provide a test-case but I only have a scala-project at hand and you probably want that out of the equation...
Affects: 3.2.2
Attachments:
- hibernate_4.2_jdbc-access-fails.tar.gz (3.15 kB)
Issue Links:
- HibernateJpaDialect does not allow ConnectionManager to eagerly release Connection for long-running Session [SPR-6895] #11560 HibernateJpaDialect does not allow ConnectionManager to eagerly release Connection for long-running Session
6 votes, 12 watchers
Metadata
Metadata
Assignees
Labels
in: dataIssues in data modules (jdbc, orm, oxm, tx)Issues in data modules (jdbc, orm, oxm, tx)type: bugA general bugA general bug