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

NoSuchMethodError for SessionFactoryImplementor.getProperties() with Hibernate 5.1 [SPR-14365] #18937

spring-projects-issues opened this issue Jun 15, 2016 · 1 comment


Copy link

@spring-projects-issues spring-projects-issues commented Jun 15, 2016

Andy Wilkinson opened SPR-14365 and commented

The signature of SessionFactoryImplementor.getProperties() changed in 5.2 to return Map rather than Properties. This leads to a NoSuchMethodError with 5.1 (and 5.0 too, I presume):

java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Map;
	at org.springframework.orm.hibernate5.SessionFactoryUtils.getDataSource(
	at org.springframework.orm.hibernate5.HibernateTransactionManager.afterPropertiesSet(
	at org.springframework.orm.hibernate5.HibernateTransactionManager.<init>(

Affects: 4.3 GA

Issue Links:

  • #18899 Support for Hibernate ORM 5.2
  • #18996 HibernateTemplate not binary-compatible with Hibernate 5.0/5.1's Query type
  • SWF-1685 HibernateFlowExecutionListener is incompatible with Hibernate 5

1 votes, 8 watchers

Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 15, 2016

Juergen Hoeller commented

We're reflectively obtaining the getProperties handle now, avoiding binary compatibility issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants