Skip to content
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

Spring 4 HibernateTransactionManager close session while executing hibernate entity-interceptor or event listener [SPR-16208] #20756

spring-projects-issues opened this issue Nov 17, 2017 · 1 comment
in: data status: invalid


Copy link

@spring-projects-issues spring-projects-issues commented Nov 17, 2017

Chintan opened SPR-16208 and commented

I am upgrading spring and hibernate to 4.2.x from version 3.2.x .But after upgrading query executed inside entity-interceptor breaks transaction and session get closed from next transaction. If I comment out my interceptor logic than application works fine.I also tried with event listener but it happens same.So anything comes with spring newer version (4.2.2) related to interceptor that it wont work with localsessionfactorybean or anything I miss.

My Configuration for localsessionfactorybean :

<tx:annotation-driven transaction-manager="myTransaction"/>
<bean id="myInterceptor" class="com.test.MyInterceptor">
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="entityInterceptor" ref="myInterceptor" />
<bean id="myTransaction" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>

No further details from SPR-16208

@spring-projects-issues spring-projects-issues added type: bug status: waiting-for-triage in: data and removed type: bug labels Jan 11, 2019
Copy link

@bclozel bclozel commented Feb 18, 2022

These versions are not supported anymore.

@bclozel bclozel closed this as completed Feb 18, 2022
@bclozel bclozel added status: invalid and removed status: waiting-for-triage labels Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: data status: invalid
None yet

No branches or pull requests

2 participants