Skip to content

jdk 25 java.lang.NoClassDefFoundError: org/apache/logging/log4j/core/impl/JdkMapAdapterStringMap #3978

@jim-parsons

Description

@jim-parsons

Description

update jdk to 25, and compile package is ok, but it went wrong when i started the service

part of the vm is bloew

--add-opens
java.management/sun.management=ALL-UNNAMED
--add-opens
java.base/java.lang=ALL-UNNAMED
--add-opens
java.base/java.lang.reflect=ALL-UNNAMED
--add-opens
java.base/sun.reflect.annotation=ALL-UNNAMED
--add-opens
java.base/java.math=ALL-UNNAMED
--add-opens
java.base/java.util=ALL-UNNAMED
--add-opens
java.base/sun.util.calendar=ALL-UNNAMED
--add-opens
java.base/java.io=ALL-UNNAMED
--add-opens
java.base/java.net=ALL-UNNAMED
--add-opens
java.xml/com.sun.org.apache.xerces.internal.jaxp.datatype=ALL-UNNAMED
--add-opens
java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
--add-opens
java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens
java.logging/java.util.logging=ALL-UNNAMED
--add-opens
java.base/java.util.concurrent=ALL-UNNAMED
--add-opens
java.base/java.util.concurrent.locks=ALL-UNNAMED
--add-opens
java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens
java.base/jdk.internal.misc=ALL-UNNAMED
--add-exports
java.base/jdk.internal.misc=ALL-UNNAMED

Configuration

Version: [2.25.2]

Operating system: [mac os]

JDK: [open jdk 25]

Logs

[org.apache.logging.slf4j.Log4jLogger caught java.lang.NoClassDefFoundError logging ParameterizedMessage: [[clientId={}]]new address context: {}
 java.lang.NoClassDefFoundError: org/apache/logging/log4j/core/impl/JdkMapAdapterStringMap
	at org.apache.logging.log4j.core.impl.ThreadContextDataInjector$ForDefaultThreadContextMap.frozenStringMap(ThreadContextDataInjector.java:147)
	at org.apache.logging.log4j.core.impl.ThreadContextDataInjector$ForDefaultThreadContextMap.injectContextData(ThreadContextDataInjector.java:129)
	at org.apache.logging.log4j.core.impl.Log4jLogEvent.createContextData(Log4jLogEvent.java:500)
	at org.apache.logging.log4j.core.impl.Log4jLogEvent.<init>(Log4jLogEvent.java:358)
	at org.apache.logging.log4j.core.impl.DefaultLogEventFactory.createEvent(DefaultLogEventFactory.java:74)
	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:554)
	at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:81)
	at org.apache.logging.log4j.core.Logger.log(Logger.java:163)
	at org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2165)
	at org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2119)
	at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2102)
	at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:2000)
	at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1867)
	at org.apache.logging.slf4j.Log4jLogger.info(Log4jLogger.java:184)]

Reproduction

[An isolated test reproducing the test.
JUnit tests similar to the ones in the code base are extremely appreciated.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiAffects the public APIinvalidslf4jAffects SLF4J integration

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions