ian lutz
07/06/2023, 7:22 AMtestImplementation("au.com.dius.pact.core:model:4.4.9")
testImplementation("au.com.dius.pact.consumer:junit5:4.4.9")
I manage to write some sort of PACT test (doesnt work); The problem is this kills debugging (adding these deps). It kills debugging for the entire project. I try to run any test in debug mode (intellij) and i get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/Result
at kotlinx.coroutines.debug.AgentPremain.<clinit>(AgentPremain.kt:24)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
Disconnected from the target VM, address: '127.0.0.1:58784', transport: 'socket'
Something to do with kotlin.
⢠What is the issue here, and how do i fix ? š
⢠Do i actually need both of those deps ?
Thanks!!ian lutz
07/06/2023, 7:36 AMian lutz
07/06/2023, 7:37 AMuglyog
ian lutz
07/06/2023, 7:42 AMuglyog
java.lang.NoClassDefFoundError: kotlin/Result means the Kotlin stdlib is missinguglyog
org.jetbrains.kotlin:kotlin-stdlib:1.6.21 to your project.ian lutz
07/06/2023, 7:44 AMian lutz
07/06/2023, 7:44 AMuglyog
ian lutz
07/06/2023, 7:49 AMian lutz
07/06/2023, 7:50 AMian lutz
07/06/2023, 7:57 AMuglyog
ian lutz
07/06/2023, 11:39 PMian lutz
07/06/2023, 11:59 PMian lutz
07/06/2023, 11:59 PMian lutz
09/04/2023, 5:34 AM