Failed to instantiate [ch.qos.logback.classic.LoggerContext] Reported exception: java.lang.AbstractMethodError: ch.qos.logback.classic.pattern.EnsureExceptionHandling.process(Lch/qos/logback/core/Context;Lch/qos/logback/core/pattern/Converter;)V at ch.qos.logback.core.pattern.PatternLayoutBase.start(PatternLayoutBase.java:86) at ch.qos.logback.classic.encoder.PatternLayoutEncoder.start(PatternLayoutEncoder.java:28) at ch.qos.logback.classic.BasicConfigurator.configure(BasicConfigurator.java:50) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:142) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:121) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:332) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:284) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:305) at org.tianlangstudio.data.hamal.common.Logging.$init$(Logging.scala:10) at org.tianlangstudio.data.hamal.server.http.HttpServerApp$.<clinit>(HttpServerApp.scala:12) at org.tianlangstudio.data.hamal.server.http.HttpServerApp.main(HttpServerApp.scala)1234567891011121314151617
因self4j与logback版本不匹配引起,修改self4j版本为1.7.26 logback版本为1.2.3解决
<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.26</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.3</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core</artifactId> <version>1.2.3</version> </dependency>