我有一个非常奇怪的例外,我无法弄清楚原因。当我运行db status
时,我得到:
Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find implementation of liquibase.logging.Logger
at liquibase.logging.LogFactory.getLogger(LogFactory.java:19)
at liquibase.logging.LogFactory.getLogger(LogFactory.java:30)
at liquibase.database.DatabaseFactory.findCorrectDatabaseImplementation(DatabaseFactory.java:67)
at liquibase.Liquibase.<init>(Liquibase.java:52)
at com.yammer.dropwizard.migrations.ManagedLiquibase.<init>(ManagedLiquibase.java:47)
at com.yammer.dropwizard.migrations.AbstractLiquibaseCommand.run(AbstractLiquibaseCommand.java:39)
at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:58)
at com.yammer.dropwizard.cli.Cli.run(Cli.java:53)
at com.yammer.dropwizard.Service.run(Service.java:61)
at com.derp.SomeService.main(SomeService.java:27)
... 6 more
Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find implementation of liquibase.logging.Logger
at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:179)
at liquibase.logging.LogFactory.getLogger(LogFactory.java:17)
... 15 more
Caused by: liquibase.exception.ServiceNotFoundException: Could not find implementation of liquibase.logging.Logger
at liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java:145)
at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:177)
... 16 more
我不确定如何解决它。谷歌搜索,它似乎是一个有点间歇性的问题,在过去,在Liquibase中产生了错误修正。我没想到这会在这样的集成功能中发生。我正在使用dropwizard-core / hibernate / migrations 0.6.2。我正在使用com.smokejumperit.gradle.OneJarPlugin gradle插件来打包它,我认为它也负责类加载。
无论如何,我有点失落。有任何想法吗?有人见过这个吗?