MavenでJadiraの依存関係を追加すると、SpringApplicationを起動しようとするとAbstractMethodErrorが発生します。スタックトレースに役立つものは何もありません。それは自分のクラスを参照していません。このエラーの原因は何ですか?どのように修正できますか?ここでJadiraの依存関係によりAbstractMethodErrorが発生する
が依存関係である:ここでは
<dependency>
<groupId>org.jadira.usertype</groupId>
<artifactId>usertype.core</artifactId>
<version>3.1.0.CR1</version>
</dependency>
は、スタックトレースの一部です:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError
...
at sec.project.CyberSecurityBaseProjectApplication.main(CyberSecurityBaseProjectApplication.java:17) [classes/:na] // this is simply the line that launches the Spring app
...
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.4.2.RELEASE.jar:1.4.2.RELEASE]
Caused by: java.lang.AbstractMethodError: null
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:280) ~[hibernate-core-5.0.11.Final.jar:5.0.11.Final]
...
FWIW、私はthisをやろうとしました。
で新しいバージョンを試してみてください。AbstractMethodErrorは、どの抽象クラスがどのような方法であるかを教えてくれます。 –