Atomikos Forum |
|
Hi! I am using Atomikos in a web application based on Spring and Hibernate. Recently we upgraded our Spring and Hibernate versions to Spring 4 and Hibernate 4. We're also using Spring JDBC template for some queries. We use connection sharing between JDBC and Hibernate (solution described by assaf27 on this Spring forum thread: http://forum.spring.io/forum/spring-projects/data/15502-sharing-the-connection-between-jdbctemplate-and-hibernatetemplate). We need this because we set a security context on each session via JDBC, and we want the same security context to apply in Hibernate queries.
Since the upgrade, we're experiencing the following problem, see exception stacktrace: http://pastebin.com/ueF5dYzA The problem appears and disappears ... it's unpredictable. We're using Atomikos 3.9.3. The moment when the problem manifests, is when we're fetching data via JDBC and Hibernate parallel via multiple threads (using the Spring @Async annotation...) I would be very pleased if somewone could assist me in finding a solution to this problem. I tried to find a clue by debugging through Atomikos and Spring code, but at a certain point it gets too abstract for me. |