okboyone opened a new issue, #1539:
URL: https://github.com/apache/logging-log4j2/issues/1539
## Description
[A clear and concise description of what the bug is.]
## Configuration
**Version:** spring-boot-starter-log4j2 2.20
**Operating system:windows11
**JDK:**jdk17
springboot3
## Logs
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.logging.slf4j.Log4jMarkerFactory.<clinit>(Log4jMarkerFactory.java:36)
at
org.apache.logging.slf4j.SLF4JServiceProvider.initialize(SLF4JServiceProvider.java:53)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:183)
at
org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:170)
at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:455)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:441)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:390)
at
org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at
org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)
at
org.springframework.boot.SpringApplication.<clinit>(SpringApplication.java:185)
at
com.benfei.ChangAnRefuelApplication.main(ChangAnRefuelApplication.java:16)
Caused by: java.lang.IllegalStateException:
java.lang.InstantiationException:
org.apache.logging.log4j.message.DefaultFlowMessageFactory
at
org.apache.logging.log4j.spi.AbstractLogger.createDefaultFlowMessageFactory(AbstractLogger.java:242)
at
org.apache.logging.log4j.spi.AbstractLogger.<init>(AbstractLogger.java:141)
at
org.apache.logging.log4j.status.StatusLogger.<init>(StatusLogger.java:141)
at
org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:91)
... 12 more
Caused by: java.lang.InstantiationException:
org.apache.logging.log4j.message.DefaultFlowMessageFactory
at [email protected]/java.lang.Class.newInstance(DynamicHub.java:639)
at
org.apache.logging.log4j.spi.AbstractLogger.createDefaultFlowMessageFactory(AbstractLogger.java:240)
... 15 more
Caused by: java.lang.NoSuchMethodException:
org.apache.logging.log4j.message.DefaultFlowMessageFactory.<init>()
at
[email protected]/java.lang.Class.getConstructor0(DynamicHub.java:3585)
at [email protected]/java.lang.Class.newInstance(DynamicHub.java:626)
... 16 more
E:\flutterwork\BootDemo>E:\flutterwork\BootDemo\target\boot-test.exe
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.logging.slf4j.Log4jMarkerFactory.<clinit>(Log4jMarkerFactory.java:36)
at
org.apache.logging.slf4j.SLF4JServiceProvider.initialize(SLF4JServiceProvider.java:53)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:183)
at
org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:170)
at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:455)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:441)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:390)
at
org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
at
org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273)
at
org.springframework.boot.SpringApplication.<clinit>(SpringApplication.java:185)
at
com.benfei.ChangAnRefuelApplication.main(ChangAnRefuelApplication.java:16)
Caused by: java.lang.IllegalStateException:
java.lang.InstantiationException:
org.apache.logging.log4j.message.DefaultFlowMessageFactory
at
org.apache.logging.log4j.spi.AbstractLogger.createDefaultFlowMessageFactory(AbstractLogger.java:242)
at
org.apache.logging.log4j.spi.AbstractLogger.<init>(AbstractLogger.java:141)
at
org.apache.logging.log4j.status.StatusLogger.<init>(StatusLogger.java:141)
at
org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:91)
... 12 more
Caused by: java.lang.InstantiationException:
org.apache.logging.log4j.message.DefaultFlowMessageFactory
at [email protected]/java.lang.Class.newInstance(DynamicHub.java:639)
at
org.apache.logging.log4j.spi.AbstractLogger.createDefaultFlowMessageFactory(AbstractLogger.java:240)
... 15 more
Caused by: java.lang.NoSuchMethodException:
org.apache.logging.log4j.message.DefaultFlowMessageFactory.<init>()
at
[email protected]/java.lang.Class.getConstructor0(DynamicHub.java:3585)
at [email protected]/java.lang.Class.newInstance(DynamicHub.java:626)
... 16 more
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]