Mockito that comes with spring-boot-starter-test 3.1.x version are failing the unit tests with the following errors:
Caused by: org.mockito.exceptions.base.MockitoInitializationException:
Could not initialize inline Byte Buddy mock maker.
It appears as if your JDK does not supply a working agent attachment mechanism.
Java : 17
JVM vendor name : Oracle Corporation
JVM vendor version : 17.0.4.1+1-LTS-2
JVM name : Java HotSpot(TM) 64-Bit Server VM
JVM version : 17.0.4.1+1-LTS-2
JVM info : mixed mode, sharing
OS name : Windows 10
OS version : 10.0
I have Oracle OpenJDK Java 17 installed and everything was working fine before updating to Spring Boot 3.1
check that
[X] The mockito message in the stacktrace have useful information, but it didn't help
[X] The problematic code (if that's possible) is copied here;
Note that some configuration are impossible to mock via Mockito
[X] Provide versions (mockito / jdk / os / any other relevant information)
Hi, I am a university student and new to contributing. I would love to work on this. If possible could I just get some tips on where to start with this issue? Can you assign this to me?
Mockito that comes with spring-boot-starter-test 3.1.x version are failing the unit tests with the following errors: Caused by: org.mockito.exceptions.base.MockitoInitializationException: Could not initialize inline Byte Buddy mock maker. It appears as if your JDK does not supply a working agent attachment mechanism. Java : 17 JVM vendor name : Oracle Corporation JVM vendor version : 17.0.4.1+1-LTS-2 JVM name : Java HotSpot(TM) 64-Bit Server VM JVM version : 17.0.4.1+1-LTS-2 JVM info : mixed mode, sharing OS name : Windows 10 OS version : 10.0 I have Oracle OpenJDK Java 17 installed and everything was working fine before updating to Spring Boot 3.1
check that