Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build #192

Open
danny-holloway opened this issue Oct 11, 2024 · 0 comments
Open

Unable to build #192

danny-holloway opened this issue Oct 11, 2024 · 0 comments

Comments

@danny-holloway
Copy link

danny-holloway commented Oct 11, 2024

Getting the following issue when attempting to build main branch:

[ERROR] Tests run: 11, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 0.593 s <<< FAILURE! - in io.opentdf.platform.sdk.AutoconfigureTest
[ERROR] io.opentdf.platform.sdk.AutoconfigureTest.testStoreKeysToCache_NoKeys  Time elapsed: 0.406 s  <<< ERROR!
org.mockito.exceptions.base.MockitoException: 

Mockito cannot mock this class: class io.opentdf.platform.sdk.KASKeyCache.

If you're not sure why you're getting this error, please open an issue on GitHub.


Java               : 22
JVM vendor name    : Homebrew
JVM vendor version : 22.0.2
JVM name           : OpenJDK 64-Bit Server VM
JVM version        : 22.0.2
JVM info           : mixed mode, sharing
OS name            : Mac OS X
OS version         : 14.6.1


You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.

Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class io.opentdf.platform.sdk.KASKeyCache, class java.lang.Object]
	at io.opentdf.platform.sdk.AutoconfigureTest.testStoreKeysToCache_NoKeys(AutoconfigureTest.java:742)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [class io.opentdf.platform.sdk.KASKeyCache, class java.lang.Object]
	at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168)
	at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:399)
	at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:190)
	at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:410)
	... 4 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant