Replies: 1 comment
-
This seems more likely a new version support for newer log4j2 in Spring, rather than bugs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Search before asking
Apache SkyWalking Component
Java Agent (apache/skywalking-java)
What happened
skywalking-agent/activations/apm-toolkit-logging-common-9.3.0.jar loaded.
ERROR 2025-01-17 17:54:00.440 main SkyWalkingAgent : index=0, batch=[class org.apache.logging.log4j.core.impl.Log4jLogEvent, class org.apache.skywalking.apm.toolkit.log.log4j.v2.x.log.GRPCLogClientAppender, class org.apache.logging.log4j.core.async.AsyncLoggerConfig, class org.apache.logging.log4j.core.appender.AsyncAppender, class org.apache.skywalking.apm.toolkit.log.log4j.v2.x.TraceIdConverter, class org.apache.skywalking.apm.toolkit.log.log4j.v2.x.SkyWalkingContextConverter], types=[class org.apache.logging.log4j.core.impl.Log4jLogEvent, class org.apache.skywalking.apm.toolkit.log.log4j.v2.x.log.GRPCLogClientAppender, class org.apache.logging.log4j.core.async.AsyncLoggerConfig, class org.apache.logging.log4j.core.appender.AsyncAppender, class org.apache.skywalking.apm.toolkit.log.log4j.v2.x.TraceIdConverter, class org.apache.skywalking.apm.toolkit.log.log4j.v2.x.SkyWalkingContextConverter]
java.lang.UnsupportedOperationException: class redefinition failed: attempted to change superclass or interfaces
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:225)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.utility.Invoker$Dispatcher.invoke(Unknown Source)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.utility.dispatcher.JavaDispatcher$Dispatcher$ForNonStaticMethod.invoke(JavaDispatcher.java:1032)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.utility.dispatcher.JavaDispatcher$ProxiedInvocationHandler.invoke(JavaDispatcher.java:1162)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.$Proxy35.retransformClasses(Unknown Source)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector$ForRetransformation.doApply(AgentBuilder.java:8336)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector.apply(AgentBuilder.java:8151)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy.apply(AgentBuilder.java:5848)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$Default.doInstall(AgentBuilder.java:11462)
at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$Default.installOn(AgentBuilder.java:11362)
at org.apache.skywalking.apm.agent.SkyWalkingAgent.installClassTransformer(SkyWalkingAgent.java:152)
at org.apache.skywalking.apm.agent.SkyWalkingAgent.premain(SkyWalkingAgent.java:105)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:560)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:572)
What you expected to happen
start success
How to reproduce
just run the app
Anything else
No response
Are you willing to submit a pull request to fix on your own?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions