Could not initialize Logback Nacos logging from classpath:nacos-logback14.xml #15061
Unanswered
chinesecooly
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pre-check
Apache Dubbo Component
Java SDK (apache/dubbo)
Details
How Can I fix it
Exception in thread "SpringApplicationShutdownHook" java.lang.IllegalStateException: Could not initialize Logback Nacos logging from classpath:nacos-logback14.xml
at com.alibaba.nacos.logger.adapter.logback14.LogbackNacosLoggingAdapter.loadConfigurationOnStart(LogbackNacosLoggingAdapter.java:120)
at com.alibaba.nacos.logger.adapter.logback14.LogbackNacosLoggingAdapter.access$000(LogbackNacosLoggingAdapter.java:37)
at com.alibaba.nacos.logger.adapter.logback14.LogbackNacosLoggingAdapter$NacosLoggerContextListener.onReset(LogbackNacosLoggingAdapter.java:141)
at ch.qos.logback.classic.LoggerContext.fireOnReset(LoggerContext.java:326)
at ch.qos.logback.classic.LoggerContext.reset(LoggerContext.java:385)
at ch.qos.logback.classic.LoggerContext.stop(LoggerContext.java:359)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.lambda$getShutdownHandler$4(LogbackLoggingSystem.java:402)
at org.springframework.boot.SpringApplicationShutdownHook$Handler.run(SpringApplicationShutdownHook.java:234)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:118)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalStateException: [*][variable] already has an associated action supplier
at ch.qos.logback.core.joran.spi.SimpleRuleStore.addRule(SimpleRuleStore.java:89)
at ch.qos.logback.core.joran.JoranConfiguratorBase.addElementSelectorAndActionAssociations(JoranConfiguratorBase.java:49)
at ch.qos.logback.classic.joran.JoranConfigurator.addElementSelectorAndActionAssociations(JoranConfigurator.java:42)
at com.alibaba.nacos.logger.adapter.logback14.NacosLogbackConfiguratorAdapterV2.addElementSelectorAndActionAssociations(NacosLogbackConfiguratorAdapterV2.java:62)
at ch.qos.logback.core.joran.GenericXMLConfigurator.buildSaxEventInterpreter(GenericXMLConfigurator.java:140)
at ch.qos.logback.core.joran.GenericXMLConfigurator.buildModelFromSaxEventList(GenericXMLConfigurator.java:200)
at ch.qos.logback.core.joran.GenericXMLConfigurator.doConfigure(GenericXMLConfigurator.java:172)
at ch.qos.logback.core.joran.GenericXMLConfigurator.doConfigure(GenericXMLConfigurator.java:123)
at com.alibaba.nacos.logger.adapter.logback14.NacosLogbackConfiguratorAdapterV2.configure(NacosLogbackConfiguratorAdapterV2.java:79)
at com.alibaba.nacos.logger.adapter.logback14.LogbackNacosLoggingAdapter.loadConfigurationOnStart(LogbackNacosLoggingAdapter.java:118)
... 10 more
org.springframework.boot
spring-boot-starter-web
org.apache.dubbo
dubbo-nacos-spring-boot-starter
org.apache.dubbo
dubbo-spring-boot-starter
dubbo:
application:
name: blog-sso
logger: slf4j
registry:
address: nacos://${nacos.address:127.0.0.1}:8848?username=nacos&password=nacos
register-mode: instance
group: BLOG_SSO
protocol:
name: tri
port: 50051
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions