You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.ExceptionInInitializerError
at io.mockk.MockKKt.clearAllMocks(MockK.kt:1630)
at ru.tinkoff.kora.test.extension.junit5.MockUtils.resetIfMock(MockUtils.java:44)
at ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.prepareMocks(KoraJUnit5Extension.java:187)
at ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.beforeEach(KoraJUnit5Extension.java:292)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.IllegalStateException: Error during attachment using: net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@5e2975ca
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:643)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:616)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:568)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:545)
at io.mockk.proxy.jvm.JvmMockKAgentFactory.initInstrumentation(JvmMockKAgentFactory.kt:127)
at io.mockk.proxy.jvm.JvmMockKAgentFactory.init(JvmMockKAgentFactory.kt:33)
at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:46)
at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:185)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at net.bytebuddy.agent.Attacher.install(Attacher.java:102)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:638)
... 13 more
Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /var/folders/d8/j56110ys0d3dctj82mycjbxm0000gn/T/.java_pid7149: target process 7149 doesn't respond within 10500ms or HotSpot VM not loaded
at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:99)
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
... 16 more
Error during attachment using: net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@5e2975ca
java.lang.IllegalStateException: Error during attachment using: net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@5e2975ca
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:643)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:616)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:568)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:545)
at io.mockk.proxy.jvm.JvmMockKAgentFactory.initInstrumentation(JvmMockKAgentFactory.kt:127)
at io.mockk.proxy.jvm.JvmMockKAgentFactory.init(JvmMockKAgentFactory.kt:33)
at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:46)
at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:185)
at io.mockk.MockKKt.clearAllMocks(MockK.kt:1630)
at ru.tinkoff.kora.test.extension.junit5.MockUtils.resetIfMock(MockUtils.java:44)
at ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.prepareMocks(KoraJUnit5Extension.java:187)
at ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.beforeEach(KoraJUnit5Extension.java:292)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at net.bytebuddy.agent.Attacher.install(Attacher.java:102)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:638)
... 13 more
Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /var/folders/d8/j56110ys0d3dctj82mycjbxm0000gn/T/.java_pid7149: target process 7149 doesn't respond within 10500ms or HotSpot VM not loaded
at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:99)
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
... 16 more
Launched on Apple M3 Pro.
Have tried with jvm22, 21, 17
Launched from Idea and from console:
./gradlew :test --tests "path.to.Test"
Both launches give same error
The text was updated successfully, but these errors were encountered:
It seems like the JVM you are using does not support dynamic attach. You can add -javaagent:/path/to/bytebuddy.jar to the VM command line to avoid the need for dynamic attach.
Hello!
getting error while using mockK:
java.lang.ExceptionInInitializerError
at io.mockk.MockKKt.clearAllMocks(MockK.kt:1630)
at ru.tinkoff.kora.test.extension.junit5.MockUtils.resetIfMock(MockUtils.java:44)
at ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.prepareMocks(KoraJUnit5Extension.java:187)
at ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.beforeEach(KoraJUnit5Extension.java:292)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.IllegalStateException: Error during attachment using: net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@5e2975ca
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:643)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:616)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:568)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:545)
at io.mockk.proxy.jvm.JvmMockKAgentFactory.initInstrumentation(JvmMockKAgentFactory.kt:127)
at io.mockk.proxy.jvm.JvmMockKAgentFactory.init(JvmMockKAgentFactory.kt:33)
at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:46)
at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:185)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at net.bytebuddy.agent.Attacher.install(Attacher.java:102)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:638)
... 13 more
Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /var/folders/d8/j56110ys0d3dctj82mycjbxm0000gn/T/.java_pid7149: target process 7149 doesn't respond within 10500ms or HotSpot VM not loaded
at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:99)
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
... 16 more
Error during attachment using: net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@5e2975ca
java.lang.IllegalStateException: Error during attachment using: net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@5e2975ca
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:643)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:616)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:568)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:545)
at io.mockk.proxy.jvm.JvmMockKAgentFactory.initInstrumentation(JvmMockKAgentFactory.kt:127)
at io.mockk.proxy.jvm.JvmMockKAgentFactory.init(JvmMockKAgentFactory.kt:33)
at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:46)
at io.mockk.impl.JvmMockKGateway.(JvmMockKGateway.kt:185)
at io.mockk.MockKKt.clearAllMocks(MockK.kt:1630)
at ru.tinkoff.kora.test.extension.junit5.MockUtils.resetIfMock(MockUtils.java:44)
at ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.prepareMocks(KoraJUnit5Extension.java:187)
at ru.tinkoff.kora.test.extension.junit5.KoraJUnit5Extension.beforeEach(KoraJUnit5Extension.java:292)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at net.bytebuddy.agent.Attacher.install(Attacher.java:102)
at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:638)
... 13 more
Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file /var/folders/d8/j56110ys0d3dctj82mycjbxm0000gn/T/.java_pid7149: target process 7149 doesn't respond within 10500ms or HotSpot VM not loaded
at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:99)
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
... 16 more
Launched on Apple M3 Pro.
Have tried with jvm22, 21, 17
Launched from Idea and from console:
./gradlew :test --tests "path.to.Test"
Both launches give same error
The text was updated successfully, but these errors were encountered: