AbstractMethodError in SessionFactoryImpl when upgrading to Hibernate 5

后端 未结 1 576
耶瑟儿~
耶瑟儿~ 2020-12-16 09:39

We\'re using Spring ORM 4.2.1.RELEASE to interact with Hibernate via JPA. Everything works fine with Hibernate 4.3.11.Final, but when we try to upgrade to Hibernate 5, it br

相关标签:
1条回答
  • 2020-12-16 10:24

    This error has nothing to do with Spring. You have an Hibernate 5 incompatible Integrator in your classpath. These are detected through the ServiceRegistry.

    A common issue is older versions of Jadira Usertype which is not compatible with Hibernate 5. If you have Jadira User type prior to version 5.0.0 in your classpath you will get this exception. If that is not the case for you, and you are unsure of which library you are having an issue with, put a breakpoint on line 278 of SessionFactoryImpl and check out the class of the Integrator that causes the exception.

    0 讨论(0)
提交回复
热议问题