I'm getting the following exception trying to build (and specifically test) a Corda workflow module:
Command being executed
$ ./gradlew build
Note that the following exception does not occur when I omit tests; for example
./gradlew build -x test
Exception being caused by tests
com.example.workflow.messaging.MessageFlowTests > initializationError
FAILED java.lang.IllegalStateException: Could not initialize plugin:
interface org.mockito.plugins.MockMaker (alternate: null)
Caused by: java.lang.IllegalStateException: Failed to load interface
org.mockito.plugins.MockMaker implementation declared in
sun.misc.CompoundEnumeration@76c0dd5f
Caused by: org.mockito.exceptions.base.MockitoInitializationException:
Could not initialize inline Byte Buddy mock maker. (This mock maker is
not supported on Android.) Are you running a JRE instead of a JDK? The
inline mock maker needs to be run on a JDK.
Java : 1.8 JVM vendor name : Oracle Corporation JVM
vendor version : 25.281-b09 JVM name : Java HotSpot(TM)
64-Bit Server VM JVM version : 1.8.0_281-b09 JVM info
: mixed mode OS name : Mac OS X OS version : 10.16
Caused by: java.lang.IllegalStateException: No compatible attachment
provider is available
I've tried completely uninstalling Java and reinstalling JDK 8, but this is still happening. Apparently this might be a Big Sur issue rather than Java?
question from:
https://stackoverflow.com/questions/65889451/corda-mockitoinitializationexception-could-not-initialize-inline-byte-buddy 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…