每次尝试运行迁移时,都会遇到这些大量异常情况,并且未能成功找到原因。我将其用作附加到另一个应用程序的应用程序的一部分。当我尝试运行它时,它本身运行良好。但是,我需要它在附加组件环境中工作,并且不明白为什么它不会起作用,因为我从未与附加组件一起使用的任何其他外部库遇到类似的问题。我已经检查确认Flyway和所有这些类都可以在类路径上使用。
java.lang.ExceptionInInitializerError: null
at org.flywaydb.core.internal.util.FeatureDetector.isSlf4jAvailable(FeatureDetector.java:96) ~[?:?]
at org.flywaydb.core.internal.logging.LogCreatorFactory.getLogCreator(LogCreatorFactory.java:39) ~[?:?]
at org.flywaydb.core.api.logging.LogFactory.getLog(LogFactory.java:78) ~[?:?]
at org.flywaydb.core.internal.util.FeatureDetector.<clinit>(FeatureDetector.java:25) ~[?:?]
at org.flywaydb.core.internal.logging.LogCreatorFactory.getLogCreator(LogCreatorFactory.java:35) ~[?:?]
at org.flywaydb.core.api.logging.LogFactory.getLog(LogFactory.java:78) ~[?:?]
at org.flywaydb.core.Flyway.<clinit>(Flyway.java:86) ~[?:?]
at me.calebbassham.stats.Stats.setupDatabase(Stats.java:22) ~[?:?]
at com.oblivionuhc.uhc.UHC$onEnable$3.run(UHC.kt:104) ~[?:?]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:82) ~[patched_1.13.2.jar:git-Paper-486]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) ~[patched_1.13.2.jar:git-Paper-486]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.13.2.jar:git-Paper-486]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: org.flywaydb.core.api.FlywayException: Unable to instantiate class org.flywaydb.core.internal.logging.slf4j.Slf4jLogCreator : org.flywaydb.core.internal.logging.slf4j.Slf4jLogCreator
at org.flywaydb.core.internal.util.ClassUtils.instantiate(ClassUtils.java:63) ~[?:?]
at org.flywaydb.core.internal.logging.LogCreatorFactory.getLogCreator(LogCreatorFactory.java:40) ~[?:?]
at org.flywaydb.core.api.logging.LogFactory.getLog(LogFactory.java:78) ~[?:?]
at org.flywaydb.core.internal.util.ClassUtils.<clinit>(ClassUtils.java:39) ~[?:?]
... 15 more
Caused by: java.lang.ClassNotFoundException: org.flywaydb.core.internal.logging.slf4j.Slf4jLogCreator
at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[?:?]
at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:398) ~[?:?]
at org.flywaydb.core.internal.util.ClassUtils.instantiate(ClassUtils.java:61) ~[?:?]
at org.flywaydb.core.internal.logging.LogCreatorFactory.getLogCreator(LogCreatorFactory.java:40) ~[?:?]
at org.flywaydb.core.api.logging.LogFactory.getLog(LogFactory.java:78) ~[?:?]
at org.flywaydb.core.internal.util.ClassUtils.<clinit>(ClassUtils.java:39) ~[?:?]
... 15 more