-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Exception mixing JPA-transaction with Spring's JdbcTemplate
PostPosted: Fri Mar 22, 2013 8:44 pm 
Newbie

Joined: Sun Jan 24, 2010 4:20 pm
Posts: 13
Hi.

I encountered this error: https://jira.springsource.org/browse/SPR-10395 while trying out Hibernate-4.2 and I wonder if it's a Spring bug or Hibernate-bug?

In short, when using Spring-3.2.2 + Hibernate-4.2.0 and calling jdbcTemplate.query() inside a Spring-managed transation using JpaTransactionManager (with Hibernate) an Exception is thrown:

Code:
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)


Downgrading to Hibernate-4.1.9.Final works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.