Skip to content

Ensure compatibility with Hibernate 4.2 [SPR-10255] #14888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Feb 4, 2013 · 3 comments
Closed

Ensure compatibility with Hibernate 4.2 [SPR-10255] #14888

spring-projects-issues opened this issue Feb 4, 2013 · 3 comments
Assignees
Labels
type: task A general task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 4, 2013

Juergen Hoeller opened SPR-10255 and commented

Hibernate 4.2 RC1 got released a few days ago. Their GA can be expected in time for our 3.2.2 release, so let's make sure that everything keeps working fine there, both with our orm.hibernate4 package and with our JPA vendor support.


Issue Links:

0 votes, 5 watchers

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

OK, let's consider this as compatible then, just quickly retesting against Hibernate 4.2 GA once it becomes available.

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Andreas Joseph Krogh 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...

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Mar 18, 2013

Phil Webb commented

Hi Andreas,

Thanks for raising this. I have opened #15028 to track this as a bug that we can target for 3.2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

No branches or pull requests

2 participants