You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "yanyu88706 (via GitHub)" <gi...@apache.org> on 2024/10/17 12:04:49 UTC

[I] [Bug] Unable to start my project after using skywalking java agent. ClassFormatError: Duplicate field name "cachedValue$$sw$eisu693$o9030k0" with signature "Ljava.lang.reflect.Method;" in class file org/apache/logging/log4j/core/async/RingBufferLogEvent [skywalking]

yanyu88706 opened a new issue, #12706:
URL: https://github.com/apache/skywalking/issues/12706

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache SkyWalking Component
   
   Java Agent (apache/skywalking-java)
   
   ### What happened
   
   Exception in thread "main" java.util.ServiceConfigurationError: org.junit.platform.launcher.TestExecutionListener: Provider io.qameta.allure.junitplatform.AllureJunitPlatform could not be instantiated
   	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
   	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:813)
   	at java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:729)
   	at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1403)
   	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
   	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
   	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
   	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
   	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
   	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
   	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
   	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
   	at org.junit.platform.launcher.core.LauncherFactory.registerTestExecutionListeners(LauncherFactory.java:179)
   	at org.junit.platform.launcher.core.LauncherFactory.createDefaultLauncher(LauncherFactory.java:137)
   	at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:125)
   	at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:109)
   	at com.intellij.junit5.JUnit5IdeaTestRunner.createListeners(JUnit5IdeaTestRunner.java:34)
   	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
   	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232)
   	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)
   Caused by: java.lang.ClassFormatError: Duplicate field name "cachedValue$$sw$eisu693$o9030k0" with signature "Ljava.lang.reflect.Method;" in class file org/apache/logging/log4j/core/async/RingBufferLogEvent
   	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
   	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
   	at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
   	at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
   	at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
   	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
   	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
   	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
   	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
   	at org.apache.logging.log4j.core.async.AsyncLoggerDisruptor.start(AsyncLoggerDisruptor.java:108)
   	at org.apache.logging.log4j.core.async.AsyncLoggerContext.start(AsyncLoggerContext.java:75)
   	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155)
   	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47)
   	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196)
   	at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137)
   	at org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55)
   	at org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47)
   	at org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33)
   	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363)
   	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
   	at io.qameta.allure.junitplatform.AllureJunitPlatform.<clinit>(AllureJunitPlatform.java:85)
   	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
   	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
   	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
   	at java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:789)
   	... 18 more
   
   ### What you expected to happen
   
   Can start my project correctly
   
   ### How to reproduce
   
   I am running junit tests by @Trace to record and track some cases of my program in skywalking, but need to start a project that is not connected to skywalking, this is the first attempt.
   
   ### Anything else
   
   skywalking java agent v9.3.0
   jdk 17
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [X] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: notifications-unsubscribe@skywalking.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Unable to start my project after using skywalking java agent. ClassFormatError: Duplicate field name "cachedValue$$sw$eisu693$o9030k0" with signature "Ljava.lang.reflect.Method;" in class file org/apache/logging/log4j/core/async/RingBufferLogEvent [skywalking]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #12706: [Bug] Unable to start my project after using skywalking java agent. ClassFormatError: Duplicate field name "cachedValue$$sw$eisu693$o9030k0" with signature "Ljava.lang.reflect.Method;" in class file org/apache/logging/log4j/core/async/RingBufferLogEvent
URL: https://github.com/apache/skywalking/issues/12706


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] Unable to start my project after using skywalking java agent. ClassFormatError: Duplicate field name "cachedValue$$sw$eisu693$o9030k0" with signature "Ljava.lang.reflect.Method;" in class file org/apache/logging/log4j/core/async/RingBufferLogEvent [skywalking]

Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on issue #12706:
URL: https://github.com/apache/skywalking/issues/12706#issuecomment-2419427359

   Don't open a new one. I have applied https://github.com/apache/skywalking/discussions/12705.
   
   This is not a bug, agent is not suitable for you debug run.


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org