marcuswj-telia commented on issue #3461:
URL: 
https://github.com/apache/maven-surefire/issues/3461#issuecomment-5575564690

   Yes, we see this error as well with Surefire 3.6.0:
   
   `java.lang.NoClassDefFoundError: Could not initialize class 
io.mockk.impl.JvmMockKGateway
           at 
io.mockk.junit5.MockKExtension.postProcessTestInstance(MockKExtension.kt:362)
           at 
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:186)
           at 
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:214)
           at 
java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:197)
           at 
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:214)
           at 
java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1716)
           at 
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:570)
           at 
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560)
           at 
java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:153)
           at 
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:176)
           at 
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
           at 
java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:632)
           at java.base/java.util.Optional.orElseGet(Optional.java:364)
           at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
           at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
   Caused by: java.lang.ExceptionInInitializerError: Exception 
java.lang.IllegalStateException: Could not self-attach to current VM using 
external process - set a property net.bytebuddy.agent.attacher.dump to dump the 
process output to a file at the specified location [in thread "main"]
           at 
net.bytebuddy.agent.ByteBuddyAgent.installExternal(ByteBuddyAgent.java:672)
           at 
net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:599)
           at 
net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:579)
           at 
net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:531)
           at 
net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:508)
           at 
io.mockk.proxy.jvm.JvmMockKAgentFactory.initInstrumentation(JvmMockKAgentFactory.kt:135)
           at 
io.mockk.proxy.jvm.JvmMockKAgentFactory.init(JvmMockKAgentFactory.kt:39)
           at io.mockk.impl.JvmMockKGateway.<init>(JvmMockKGateway.kt:82)
           at io.mockk.impl.JvmMockKGateway.<clinit>(JvmMockKGateway.kt:230)
           ... 15 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]

Reply via email to