小编Thr*_*nCA的帖子

升级到Hibernate 5时,SessionFactoryImpl中的AbstractMethodError

我们使用Spring ORM 4.2.1.RELEASE通过JPA与Hibernate交互.Hibernate 4.3.11.Final一切正常,但是当我们尝试升级到Hibernate 5时,它在构造SessionFactory时会出现AbstractMethodError.

根据发行说明,Spring 4.2.1确实支持Hibernate 5.检查Maven依赖树没有显示任何重复或过时的Hibernate或Spring版本.报告的具体行(https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java第278行)正在迭代Hibernate集成商,但我们不使用任何集成商,因此集成商列表在逻辑上应该是空的(因此不会迭代).

有没有人知道这是春天的错误(或缺乏支持),还是我们做错了什么?

从应用程序日志中提取:

2015-09-08 13:17:45,452 [main] INFO  org.springframework.test.context.support.DefaultTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@20f0461e, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@7e8b6c76, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@737df7e1, org.springframework.test.context.support.DirtiesContextTestExecutionListener@531d1003, org.springframework.test.context.transaction.TransactionalTestExecutionListener@19065f96, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@716d7daf]
2015-09-08 13:17:45,460 [main] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [dataContext.xml]
2015-09-08 13:17:45,689 [main] INFO  org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [systemContext.xml]
2015-09-08 13:17:45,779 [main] INFO  org.springframework.context.support.GenericApplicationContext - Refreshing org.springframework.context.support.GenericApplicationContext@4b56a656: startup date [Tue Sep 08 13:17:45 AEST 2015]; root of context hierarchy
2015-09-08 13:17:45,846 [main] INFO …
Run Code Online (Sandbox Code Playgroud)

java spring hibernate jpa hibernate-5.x

33
推荐指数
1
解决办法
1万
查看次数

标签 统计

hibernate ×1

hibernate-5.x ×1

java ×1

jpa ×1

spring ×1