Skip to content

Regression: HibernateTransactionManager.doBegin fails with java.lang.IllegalStateException: Already value [org.springframework.jdbc.datasource.ConnectionHolder [SPR-6409] #11075

@spring-projects-issues

Description

@spring-projects-issues

Axel Fontaine opened SPR-6409 and commented

Note: This works perfectly in 2.5.6 with the same Hibernate version.

In HibernateTransactionManager.doBegin() line 555 (hibTx = session.beginTransaction();) results in a call to TransactionSynchronizationManager.bindResource with the following arguments:
key = the datasource
value = connection holder

So far so good.

Execution of HibernateTransactionManager.doBegin() then resumes until line 571 (TransactionSynchronizationManager.bindResource(getDataSource(), conHolder);) which then bombs out on line 179 with java.lang.IllegalStateException: Already value !

This is a serious regression that should definitely be fixed before 3.0 goes final.

Keep up the good work,
Axel (going back to 2.5.6 until this is resolved)


Affects: 3.0 RC2

Referenced from: commits 5165465

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions