Andreas Rimmelspacher
unread,Nov 18, 2023, 4:00:54 PM11/18/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsonschema2pojo-users
I cloned the project and did *mvn clean verify* to check my setup. Unfortunately I get errors testing jsonschema2pojo-core, more specific with Mockito. Here's an example partial error log:
-------------------------------------------------------------------------------
Test set: org.jsonschema2pojo.rules.DigitsRuleTest
-------------------------------------------------------------------------------
Tests run: 54, Failures: 0, Errors: 54, Skipped: 0, Time elapsed: 8.912 s <<< FAILURE! - in org.jsonschema2pojo.rules.DigitsRuleTest
jsrDisable[0](org.jsonschema2pojo.rules.DigitsRuleTest) Time elapsed: 0.209 s <<< ERROR!
org.mockito.exceptions.base.MockitoException:
Failed to release mocks
This should not happen unless you are using a third-party mock maker
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.fasterxml.jackson.databind.JsonNode.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : Oracle Corporation
JVM vendor version : 21+35
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21+35
JVM info : mixed mode, sharing
OS name : Linux
OS version : 6.1.62-1-MANJARO
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 [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
testHasIntegerAndFractionalDigits[0](org.jsonschema2pojo.rules.DigitsRuleTest) Time elapsed: 0.166 s <<< ERROR!
org.mockito.exceptions.base.MockitoException:
Failed to release mocks
This should not happen unless you are using a third-party mock maker
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.fasterxml.jackson.databind.JsonNode.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : Oracle Corporation
JVM vendor version : 21+35
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21+35
JVM info : mixed mode, sharing
OS name : Linux
OS version : 6.1.62-1-MANJARO
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 [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
testNotUsed[0](org.jsonschema2pojo.rules.DigitsRuleTest) Time elapsed: 0.134 s <<< ERROR!
org.mockito.exceptions.base.MockitoException:
Failed to release mocks
This should not happen unless you are using a third-party mock maker
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.fasterxml.jackson.databind.JsonNode.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : Oracle Corporation
JVM vendor version : 21+35
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21+35
JVM info : mixed mode, sharing
OS name : Linux
OS version : 6.1.62-1-MANJARO
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 [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
jsrDisable[1](org.jsonschema2pojo.rules.DigitsRuleTest) Time elapsed: 0.156 s <<< ERROR!
org.mockito.exceptions.base.MockitoException:
Failed to release mocks
This should not happen unless you are using a third-party mock maker
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.fasterxml.jackson.databind.JsonNode.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : Oracle Corporation
JVM vendor version : 21+35
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21+35
JVM info : mixed mode, sharing
OS name : Linux
OS version : 6.1.62-1-MANJARO
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 [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
testHasIntegerAndFractionalDigits[1](org.jsonschema2pojo.rules.DigitsRuleTest) Time elapsed: 0.149 s <<< ERROR!
org.mockito.exceptions.base.MockitoException:
Failed to release mocks
This should not happen unless you are using a third-party mock maker
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class com.fasterxml.jackson.databind.JsonNode.
If you're not sure why you're getting this error, please report to the mailing list.
Java : 21
JVM vendor name : Oracle Corporation
JVM vendor version : 21+35
JVM name : OpenJDK 64-Bit Server VM
JVM version : 21+35
JVM info : mixed mode, sharing
OS name : Linux
OS version : 6.1.62-1-MANJARO
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 [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: org.mockito.exceptions.base.MockitoException: Could not modify all classes [interface com.fasterxml.jackson.databind.JsonSerializable, interface com.fasterxml.jackson.core.TreeNode, class java.lang.Object, class com.fasterxml.jackson.databind.JsonSerializable$Base, interface java.lang.Iterable, class com.fasterxml.jackson.databind.JsonNode]
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalStateException:
Byte Buddy could not instrument all classes within the mock's type hierarchy
This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
- Compiled by older versions of scalac
- Classes that are part of the Android distribution
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65
at org.jsonschema2pojo.rules.DigitsRuleTest.setUp(DigitsRuleTest.java:110)