简体   繁体   English

我无法在 IntelliJ 上使用调试:java.lang.NoSuchMethodError: 'org.slf4j.impl.StaticMDCBinder org.slf4j.impl.StaticMDCBinder.getSingleton()'

[英]I cannot use Debug on IntelliJ : java.lang.NoSuchMethodError: 'org.slf4j.impl.StaticMDCBinder org.slf4j.impl.StaticMDCBinder.getSingleton()'

I am working on Spring Boot and getting NoSuchMethodError when I click on Debug.我正在处理 Spring 启动并在单击调试时收到 NoSuchMethodError。 Apparently it is caused by multiple slf4j bindings in the classpath.显然它是由类路径中的多个 slf4j 绑定引起的。 It all happened all of a sudden and I am not able to fix this for over a week now.这一切都是突然发生的,我一个多星期都无法解决这个问题。

Please see the attached stacktrace.请参阅附加的堆栈跟踪。

My maven dependency tree is pasted below showing the different loggers on the list.我的 maven 依赖树粘贴在下面,显示列表中的不同记录器。

[INFO] +- org.thymeleaf.extras:thymeleaf-extras-springsecurity5:jar:3.0.4.RELEASE:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.4.2:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:2.4.2:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.4.2:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] |  |  |  | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] |  |  | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile

There could be many breakpoints可能有很多断点

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 线程“ main”中的异常java.lang.NoSuchMethodError:org.slf4j.impl.StaticLoggerBinder.getSingleton() - Exception in thread “main” java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton() ClassNotFoundException:org.slf4j.impl.StaticLoggerBinder - ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder springboot2.7.5启动报错 Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder - springboot2.7.5 start error Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder java.lang.IllegalAccessError: 试图从 SpringBoot 中的 org.slf4j.LoggerFactory 类访问字段 org.slf4j.impl.StaticLoggerBinder.SINGLETON - java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory in SpringBoot 引起:org.apache.logging.log4j.LoggingException:log4j-slf4j-impl 不能与 log4j-to-slf4j 一起出现 - Caused by: org.apache.logging.log4j.LoggingException: log4j-slf4j-impl cannot be present with log4j-to-slf4j 无法启动Spring Boot类“ org.slf4j.impl.StaticLoggerBinder” - Failed to load class “org.slf4j.impl.StaticLoggerBinder”, Spring Boot Spring boot + slf4j + log4j + class org.apache.logging.slf4j.SLF4JLoggerContext 无法转换为 class - Spring boot + slf4j + log4j + class org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to class java.lang.NoClassDefFoundError:org / slf4j / LoggerFactory春季启动1.5.2 Maven - java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory Spring boot 1.5.2 maven 使用Java 9在SprnigBoot中找不到org / slf4j / LoggerFactory - Could not found org/slf4j/LoggerFactory in SprnigBoot with Java 9 java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.atDebug() 与 poi-ooxml - java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.atDebug() with poi-ooxml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM