gpt4 book ai didi

java - 执行 "AbstractMethodError"构造函数时发生 "org.hibernate.internal.SessionFactoryImpl()"错误

转载 作者:行者123 更新时间:2023-12-01 18:49:02 25 4
gpt4 key购买 nike

我正在处理一个多模块 gradle 项目(12 个模块)。我继承了该项目,需要更新其中使用的一些库的版本。

我正在尝试切换到使用 hibernate-core 版本 5.4.10.Final。我无法理解这个错误的原因:

    ... 35 more
Caused by: java.lang.AbstractMethodError
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:286)
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:708)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)
at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:616)
at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:600)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792)
... 48 more

我有:

  • IntelliJ IDEA 2019.3.1(社区版)内部版本#IC-193.5662.53,建于2019年12月18日;
  • 运行时版本:11-ea+121 amd64;
  • 虚拟机:JetBrains s.r.o 提供的 OpenJDK 64 位服务器虚拟机;
  • Linux 4.15.0-74-通用;
  • GC:ParNew、ConcurrentMarkSweep;
  • 内存:1204M;
  • 核心:6。

注册表:

  • 非捆绑插件:DBN、Lombook 插件、OdpsStudio、com.jetbrains.ChooseRuntime、marcglasberg.HibernateInspectionsPlugin、org.dnltsk.mapfileplugin、org.jetbrains.kotlin

构造函数的这一行

at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:286)

包含调用“Integrator”接口(interface)的“integrate”方法的说明。

285     for ( Integrator integrator : serviceRegistry.getService( IntegratorService.class ).getIntegrators() ) {
286 integrator.integrate( metadata, this, this.serviceRegistry );
287 integratorObserver.integrators.add( integrator );
288 }

这些类(SessionFactoryImpl)和接口(interface)(Integrator)是“org.hibernate”库的“hibernate-core”模块的一部分。我正在尝试升级到其版本 5.4.10.Final。在崩溃站点,“integrator”变量是“HibernateSeearchIntegrator”类的实例。

HibernateSearchIntegrator”类是“hibernate-search”模块的一部分。但是,根据我的项目的模块,包含此模块不会给出任何内容。该项目使用该模块的旧版本(5.3.0.Final),which had to be returned .

主应用程序模块的依赖关系树如下所示:

...$ gradle sa:dependencies --configuration compile

> Task :sa:dependencies

------------------------------------------------------------
Project :sa
------------------------------------------------------------

compile - Dependencies for source set 'main' (deprecated, use 'implementation' instead).
+--- project :wrath
| +--- project :domain
| | +--- project :model
| | | +--- org.springframework:spring-core:5.2.2.RELEASE
| | | | \--- org.springframework:spring-jcl:5.2.2.RELEASE
| | | +--- org.springframework:spring-context:5.2.2.RELEASE
| | | | +--- org.springframework:spring-aop:5.2.2.RELEASE
| | | | | +--- org.springframework:spring-beans:5.2.2.RELEASE
| | | | | | \--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | | | | \--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | | | +--- org.springframework:spring-beans:5.2.2.RELEASE (*)
| | | | +--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | | | \--- org.springframework:spring-expression:5.2.2.RELEASE
| | | | \--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.6.0
| | | +--- org.hibernate.validator:hibernate-validator:6.1.0.Final
| | | | +--- jakarta.validation:jakarta.validation-api:2.0.2
| | | | +--- org.jboss.logging:jboss-logging:3.3.2.Final
| | | | \--- com.fasterxml:classmate:1.3.4 -> 1.5.1
| | | \--- commons-beanutils:commons-beanutils:1.9.4
| | | +--- commons-logging:commons-logging:1.2
| | | \--- commons-collections:commons-collections:3.2.2
| | +--- project :bora
| | | +--- com.fasterxml.jackson.core:jackson-core:2.6.0
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.6.0
| | | | +--- com.fasterxml.jackson.core:jackson-annotations:2.6.0
| | | | \--- com.fasterxml.jackson.core:jackson-core:2.6.0
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.6.0
| | | \--- commons-io:commons-io:2.6
| | +--- com.fasterxml.jackson.core:jackson-annotations:2.6.0
| | +--- commons-beanutils:commons-beanutils:1.9.4 (*)
| | +--- com.ibm.icu:icu4j:65.1
| | +--- com.google.gag:gag:1.0.1
| | +--- com.google.guava:guava:28.2-jre
| | | +--- com.google.guava:failureaccess:1.0.1
| | | +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
| | | +--- com.google.code.findbugs:jsr305:3.0.2
| | | +--- org.checkerframework:checker-qual:2.10.0
| | | +--- com.google.errorprone:error_prone_annotations:2.3.4
| | | \--- com.google.j2objc:j2objc-annotations:1.3
| | +--- joda-time:joda-time:2.1 -> 2.9.7
| | +--- org.apache.commons:commons-lang3:3.9
| | +--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-tx:5.2.2.RELEASE
| | | +--- org.springframework:spring-beans:5.2.2.RELEASE (*)
| | | \--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-context-support:5.2.2.RELEASE
| | | +--- org.springframework:spring-beans:5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-context:5.2.2.RELEASE (*)
| | | \--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | +--- org.springframework.data:spring-data-mongodb:1.10.22.RELEASE
| | | +--- org.springframework:spring-tx:4.3.24.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-context:4.3.24.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-beans:4.3.24.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-core:4.3.24.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-expression:4.3.24.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework.data:spring-data-commons:1.13.22.RELEASE
| | | | +--- org.springframework:spring-core:4.3.24.RELEASE -> 5.2.2.RELEASE (*)
| | | | +--- org.springframework:spring-beans:4.3.24.RELEASE -> 5.2.2.RELEASE (*)
| | | | +--- org.slf4j:slf4j-api:1.7.25 -> 1.7.30
| | | | \--- org.slf4j:jcl-over-slf4j:1.7.25
| | | | \--- org.slf4j:slf4j-api:1.7.25 -> 1.7.30
| | | +--- org.mongodb:mongo-java-driver:2.14.3
| | | +--- org.slf4j:slf4j-api:1.7.25 -> 1.7.30
| | | \--- org.slf4j:jcl-over-slf4j:1.7.25 (*)
|>>>>|>>>>+--- org.hibernate:hibernate-search:5.3.0.Final <<<<<<<<<<<<<<<<<<<<<<
| | | \--- org.hibernate:hibernate-search-orm:5.3.0.Final
| | | +--- org.hibernate:hibernate-search-engine:5.3.0.Final
| | | | +--- org.hibernate.common:hibernate-commons-annotations:4.0.5.Final -> 5.1.0.Final
| | | | | \--- org.jboss.logging:jboss-logging:3.3.2.Final
| | | | +--- org.apache.lucene:lucene-core:4.10.4
| | | | +--- org.apache.lucene:lucene-analyzers-common:4.10.4
| | | | | \--- org.apache.lucene:lucene-core:4.10.4
| | | | +--- org.apache.lucene:lucene-facet:4.10.4
| | | | | +--- org.apache.lucene:lucene-core:4.10.4
| | | | | \--- org.apache.lucene:lucene-queries:4.10.4
| | | | \--- org.jboss.logging:jboss-logging:3.1.4.GA -> 3.3.2.Final
| | | \--- org.hibernate:hibernate-core:4.3.10.Final -> 5.4.10.Final
| | | +--- org.jboss.logging:jboss-logging:3.3.2.Final
| | | +--- javax.persistence:javax.persistence-api:2.2
| | | +--- org.javassist:javassist:3.24.0-GA
| | | +--- net.bytebuddy:byte-buddy:1.10.2
| | | +--- antlr:antlr:2.7.7
| | | +--- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.1.1.Final
| | | +--- org.jboss:jandex:2.1.1.Final
| | | +--- com.fasterxml:classmate:1.5.1
| | | +--- javax.activation:javax.activation-api:1.2.0
| | | +--- org.dom4j:dom4j:2.1.1
| | | +--- org.hibernate.common:hibernate-commons-annotations:5.1.0.Final (*)
| | | +--- javax.xml.bind:jaxb-api:2.3.1
| | | | \--- javax.activation:javax.activation-api:1.2.0
| | | \--- org.glassfish.jaxb:jaxb-runtime:2.3.1
| | | +--- javax.xml.bind:jaxb-api:2.3.1 (*)
| | | +--- org.glassfish.jaxb:txw2:2.3.1
| | | +--- com.sun.istack:istack-commons-runtime:3.0.7
| | | +--- org.jvnet.staxex:stax-ex:1.8
| | | +--- com.sun.xml.fastinfoset:FastInfoset:1.2.15
| | | \--- javax.activation:javax.activation-api:1.2.0
| | +--- org.slf4j:slf4j-log4j12:1.7.30
| | | +--- org.slf4j:slf4j-api:1.7.30
| | | \--- log4j:log4j:1.2.17
| | \--- uk.com.robust-it:cloning:1.9.12
| | \--- org.objenesis:objenesis:3.0.1
| +--- project :bora (*)
| +--- io.undertow:undertow-core:2.0.0.Final
| | +--- org.jboss.logging:jboss-logging:3.3.0.Final -> 3.3.2.Final
| | +--- org.jboss.xnio:xnio-api:3.3.8.Final
| | \--- org.jboss.xnio:xnio-nio:3.3.8.Final
| | \--- org.jboss.xnio:xnio-api:3.3.8.Final
| +--- io.undertow:undertow-servlet:2.0.0.Final
| | +--- io.undertow:undertow-core:2.0.0.Final (*)
| | +--- org.jboss.spec.javax.servlet:jboss-servlet-api_4.0_spec:1.0.0.Final
| | \--- org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:1.0.2.Final
| +--- org.springframework:spring-webmvc:5.2.2.RELEASE
| | +--- org.springframework:spring-aop:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-beans:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-context:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-expression:5.2.2.RELEASE (*)
| | \--- org.springframework:spring-web:5.2.2.RELEASE
| | +--- org.springframework:spring-beans:5.2.2.RELEASE (*)
| | \--- org.springframework:spring-core:5.2.2.RELEASE (*)
| +--- org.springframework:spring-web:5.2.2.RELEASE (*)
| +--- org.springframework:spring-tx:5.2.2.RELEASE (*)
| +--- org.springframework:spring-orm:5.2.2.RELEASE
| | +--- org.springframework:spring-beans:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-jdbc:5.2.2.RELEASE
| | | +--- org.springframework:spring-beans:5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-core:5.2.2.RELEASE (*)
| | | \--- org.springframework:spring-tx:5.2.2.RELEASE (*)
| | \--- org.springframework:spring-tx:5.2.2.RELEASE (*)
| +--- org.springframework:spring-context-support:5.2.2.RELEASE (*)
| +--- org.springframework.security:spring-security-config:3.2.10.RELEASE
| | +--- aopalliance:aopalliance:1.0
| | +--- org.springframework.security:spring-security-core:3.2.10.RELEASE
| | | +--- aopalliance:aopalliance:1.0
| | | +--- org.springframework:spring-aop:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-beans:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-context:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-core:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | | \--- org.springframework:spring-expression:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | +--- org.springframework:spring-aop:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | +--- org.springframework:spring-beans:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | +--- org.springframework:spring-context:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | \--- org.springframework:spring-core:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| +--- org.springframework.security:spring-security-web:3.2.10.RELEASE
| | +--- aopalliance:aopalliance:1.0
| | +--- org.springframework.security:spring-security-core:3.2.10.RELEASE (*)
| | +--- org.springframework:spring-beans:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | +--- org.springframework:spring-context:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | +--- org.springframework:spring-core:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | +--- org.springframework:spring-expression:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | \--- org.springframework:spring-web:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| +--- com.vaadin:vaadin:6.8.4
| +--- javax:javaee-api:8.0.1
| | \--- com.sun.mail:javax.mail:1.6.2
| | \--- javax.activation:activation:1.1
| +--- org.slf4j:slf4j-log4j12:1.7.30 (*)
| \--- javax.xml.bind:jaxb-api:2.3.0 -> 2.3.1 (*)
+--- project :dataserver
| +--- project :domain (*)
| +--- project :serverside
| | +--- project :domain (*)
| | +--- project :bora (*)
| | +--- ru.leasoft.armspk:ostro-core:2.0.7
| | | \--- org.springframework:spring-web:4.1.7.RELEASE -> 5.2.2.RELEASE (*)
| | +--- ru.leasoft.armspk:ostro-api:2.0.7
| | | +--- ru.leasoft.armspk:ostro-core:2.0.7 (*)
| | | +--- org.springframework:spring-web:4.1.7.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-webmvc:4.1.7.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.6.0
| | | \--- com.fasterxml.jackson.core:jackson-databind:2.6.0 (*)
| | +--- ru.leasoft.armspk:ostro-ui:2.0.7
| | +--- org.aspectj:aspectjweaver:1.9.5
| | +--- org.apache.poi:poi:3.12
| | | \--- commons-codec:commons-codec:1.9
| | +--- org.apache.poi:poi-ooxml:3.12
| | | +--- org.apache.poi:poi:3.12 (*)
| | | \--- org.apache.poi:poi-ooxml-schemas:3.12
| | | \--- org.apache.xmlbeans:xmlbeans:2.6.0
| | | \--- stax:stax-api:1.0.1
| | +--- org.springframework.security:spring-security-acl:3.2.10.RELEASE
| | | +--- aopalliance:aopalliance:1.0
| | | +--- org.springframework.security:spring-security-core:3.2.10.RELEASE (*)
| | | +--- org.springframework:spring-aop:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-context:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-core:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | | +--- org.springframework:spring-jdbc:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | | \--- org.springframework:spring-tx:3.2.18.RELEASE -> 5.2.2.RELEASE (*)
| | +--- org.springframework.security:spring-security-core:3.2.10.RELEASE (*)
| | +--- org.springframework:spring-tx:5.2.2.RELEASE (*)
| | +--- org.springframework:spring-context:5.2.2.RELEASE (*)
| | +--- net.sf.dozer:dozer:5.5.1
| | | +--- commons-beanutils:commons-beanutils:1.9.1 -> 1.9.4 (*)
| | | +--- org.apache.commons:commons-lang3:3.2.1 -> 3.9
| | | +--- org.slf4j:slf4j-api:1.7.5 -> 1.7.30
| | | \--- org.slf4j:jcl-over-slf4j:1.7.5 -> 1.7.25 (*)
| | +--- net.sf.dozer:dozer-spring:5.5.1
| | +--- org.javers:javers-core:5.3.4
| | | +--- org.slf4j:slf4j-api:1.7.25 -> 1.7.30
| | | +--- com.google.code.gson:gson:2.8.5
| | | +--- org.picocontainer:picocontainer:2.15
| | | +--- io.github.classgraph:classgraph:4.4.12
| | | +--- joda-time:joda-time:2.9.7
| | | \--- com.google.guava:guava:27.0-jre -> 28.2-jre (*)
| | +--- com.google.guava:guava:28.2-jre (*)
| | +--- com.lowagie:itext:4.2.1
| | | \--- com.itextpdf:itextpdf:5.5.6 -> 5.5.13.1
| | +--- com.jamesmurty.utils:java-xmlbuilder:1.1
| | | \--- net.iharder:base64:2.3.8
| | +--- org.jsoup:jsoup:1.7.2
| | +--- org.slf4j:slf4j-api:1.7.5 -> 1.7.30
| | \--- org.slf4j:slf4j-log4j12:1.7.30 (*)
| +--- project :migrations
| | \--- org.flywaydb:flyway-core:3.2.1
| +--- org.springframework:spring-beans:5.2.2.RELEASE (*)
| +--- org.springframework.security:spring-security-acl:3.2.10.RELEASE (*)
| +--- org.springframework:spring-context-support:5.2.2.RELEASE (*)
| +--- org.springframework.data:spring-data-mongodb:1.10.22.RELEASE (*)
| \--- org.slf4j:slf4j-log4j12:1.7.30 (*)
+--- project :webserver
| +--- project :domain (*)
| +--- project :sloth
| | +--- project :model (*)
| | +--- project :domain (*)
| | +--- com.google.gag:gag:1.0.1
| | +--- com.google.guava:guava:28.2-jre (*)
| | +--- org.springframework.security:spring-security-core:3.2.10.RELEASE (*)
| | +--- com.itextpdf:itextpdf:5.5.13.1
| | +--- com.vaadin:vaadin:6.8.4
| | +--- org.vaadin.addons:wizards-for-vaadin:0.4.5
| | +--- org.vaadin.addon:confirmdialog:1.2.1
| | | \--- com.vaadin:vaadin:6.5.7 -> 6.8.4
| | +--- org.vaadin.addons:contextmenu:3.1.0
| | +--- org.vaadin.addons:stepper:1.2.0
| | +--- org.vaadin.addons:easyuploads:0.5.3
| | +--- uk.com.robust-it:cloning:1.9.12 (*)
| | +--- org.jsoup:jsoup:1.7.2
| | +--- org.apache.poi:poi:3.12 (*)
| | \--- org.apache.poi:poi-ooxml:3.12 (*)
| +--- ru.leasoft.orgchart:orgchart:0.0.2
| +--- ru.leasoft.armspk:jasperfont:1.0.0
| +--- javax:javaee-api:8.0.1 (*)
| +--- org.dellroad:dellroad-stuff-vaadin:1.0.420
| +--- io.undertow:undertow-core:2.0.0.Final (*)
| +--- io.undertow:undertow-servlet:2.0.0.Final (*)
| +--- org.springframework:spring-context:5.2.2.RELEASE (*)
| +--- org.springframework:spring-web:5.2.2.RELEASE (*)
| +--- org.springframework.security:spring-security-core:3.2.10.RELEASE (*)
| +--- com.itextpdf:itextpdf:5.5.13.1
| +--- com.vaadin.addon:vaadin-charts-vaadin6:1.1.9
| | +--- com.google.code.gson:gson:2.2 -> 2.8.5
| | \--- commons-io:commons-io:1.4 -> 2.6
| +--- org.vaadin.addons:refresher:1.1.1
| +--- org.vaadin.addons:animator:1.6.6
| +--- org.vaadin.addons:wizards-for-vaadin:0.4.5
| +--- org.vaadin.addon:confirmdialog:1.2.1 (*)
| +--- org.vaadin.addons:contextmenu:3.1.0
| +--- com.google.gwt.google-apis:gwt-visualization:1.1.2
| +--- net.sf.jasperreports:jasperreports:5.5.0
| | +--- commons-beanutils:commons-beanutils:1.8.0 -> 1.9.4 (*)
| | +--- commons-collections:commons-collections:2.1 -> 3.2.2
| | +--- commons-digester:commons-digester:2.1
| | | +--- commons-beanutils:commons-beanutils:1.8.3 -> 1.9.4 (*)
| | | \--- commons-logging:commons-logging:1.1.1 -> 1.2
| | +--- commons-logging:commons-logging:1.1.1 -> 1.2
| | +--- com.lowagie:itext:2.1.7.js2 -> 4.2.1 (*)
| | +--- jfree:jcommon:1.0.15
| | +--- jfree:jfreechart:1.0.12
| | | \--- jfree:jcommon:1.0.15
| | +--- xml-apis:xml-apis:1.3.02
| | +--- eclipse:jdtcore:3.1.0
| | +--- org.codehaus.castor:castor:1.2
| | | \--- commons-logging:commons-logging:1.1.1 -> 1.2
| | +--- com.fasterxml.jackson.core:jackson-core:2.1.4 -> 2.6.0
| | +--- com.fasterxml.jackson.core:jackson-databind:2.1.4 -> 2.6.0 (*)
| | \--- com.fasterxml.jackson.core:jackson-annotations:2.1.4 -> 2.6.0
| +--- org.aspectj:aspectjweaver:1.9.5
| +--- org.jdom:jdom:2.0.2
| +--- org.jsoup:jsoup:1.7.2
| +--- org.apache.poi:poi:3.12 (*)
| +--- org.apache.poi:poi-ooxml:3.12 (*)
| +--- org.apache.poi:ooxml-schemas:1.0
| | \--- org.apache.xmlbeans:xmlbeans:2.3.0 -> 2.6.0 (*)
| +--- org.apache.poi:poi-scratchpad:3.12
| | \--- org.apache.poi:poi:3.12 (*)
| \--- org.slf4j:slf4j-log4j12:1.7.30 (*)
+--- org.springframework:spring-web:5.2.2.RELEASE (*)
+--- org.springframework:spring-webmvc:5.2.2.RELEASE (*)
+--- org.springframework:spring-tx:5.2.2.RELEASE (*)
+--- org.springframework:spring-orm:5.2.2.RELEASE (*)
+--- org.springframework:spring-context-support:5.2.2.RELEASE (*)
+--- org.hibernate:hibernate-ehcache:5.4.10.Final
| +--- org.jboss.logging:jboss-logging:3.3.2.Final
| +--- org.hibernate:hibernate-core:5.4.10.Final (*)
| \--- net.sf.ehcache:ehcache:2.10.6
| \--- org.slf4j:slf4j-api:1.7.25 -> 1.7.30
+--- org.hibernate:hibernate-c3p0:5.4.10.Final
| +--- org.jboss.logging:jboss-logging:3.3.2.Final
| +--- org.hibernate:hibernate-core:5.4.10.Final (*)
| \--- com.mchange:c3p0:0.9.5.3
| \--- com.mchange:mchange-commons-java:0.2.15
+--- org.hibernate:hibernate-entitymanager:5.4.10.Final
| +--- org.jboss.logging:jboss-logging:3.3.2.Final
| +--- org.hibernate:hibernate-core:5.4.10.Final (*)
| +--- org.dom4j:dom4j:2.1.1
| +--- org.hibernate.common:hibernate-commons-annotations:5.1.0.Final (*)
| +--- javax.persistence:javax.persistence-api:2.2
| +--- net.bytebuddy:byte-buddy:1.10.2
| \--- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.1.1.Final
+--- javax.el:javax.el-api:3.0.0
+--- com.sun.el:el-ri:1.0
+--- net.sf.ehcache:ehcache-core:2.6.11
| \--- org.slf4j:slf4j-api:1.6.1 -> 1.7.30
+--- org.aspectj:aspectjweaver:1.9.5
+--- mysql:mysql-connector-java:5.1.33
\--- org.slf4j:slf4j-log4j12:1.7.30 (*)

(*) - dependencies omitted (listed previously)

A web-based, searchable dependency report is available by adding the --scan option.

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
...$

在这里您可以看到,从项目模块可以访问“org.hibernate”库的“hibernate-search”模块。但由于某种原因,“HibernateSearchIntegrator”类中接口(interface)的实现无法从“hibernate-core”模块中获得。

第 1 版。

我尝试将 hibernate-search 模块的依赖直接添加到项目模块“sa”和“wrath”中,但没有成功。

最佳答案

感谢@StanislavL 的提示!如果将使用的 hibernate-search 模块的版本更改为“5.4.0.Final”,错误就会消失。我还没有测试过新版本。

关于java - 执行 "AbstractMethodError"构造函数时发生 "org.hibernate.internal.SessionFactoryImpl()"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59768310/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com