neo4j-labs / neosemantics

Graph+Semantics: Import/Export RDF from Neo4j. SHACL Validation, Model mapping and more.... If you like it, please ★ ⇧
https://neo4j.com/labs/neosemantics/
Apache License 2.0
826 stars 143 forks source link

License check failed with unknown error: Failed to invoke procedure `bloom.checkLicenseCompliance`: Caused by: java.lang.NoSuchMethodError: 'com.fasterxml.jackson.core.util.JacksonFeatureSet com.fasterxml.jackson.core.JsonParser.getReadCapabilities()' #264

Closed Sandalorian closed 2 years ago

Sandalorian commented 2 years ago

When combining Bloom, GDS, APOC and n10s there can be occurrences where Bloom does not start due to incompatible versions of jackson-core being loaded. This would also have knock on effects for other parts that also rely on jackson 2.13 methods.

Specifically Bloom and GDS uses jackson-core 2.13, apoc inherts from Neo4j which uses 2.12.

N10s uses jackson-core 2.9.

When the wrong version of jackson-core is loaded, we end up with an error during log in:

License check failed with unknown error: Failed to invoke procedure `bloom.checkLicenseCompliance`: Caused by: java.lang.NoSuchMethodError: 'com.fasterxml.jackson.core.util.JacksonFeatureSet com.fasterxml.jackson.core.JsonParser.getReadCapabilities()'

When reviewing the javdocs for jackson-core, we see that the method is present on 2.13 but is not present on 2.9. Below are the links:

Jackson 2.13: https://fasterxml.github.io/jackson-core/javadoc/2.13/com/fasterxml/jackson/core/JsonParser.html#getReadCapabilities--

Jackson 2.9: https://fasterxml.github.io/jackson-core/javadoc/2.9/com/fasterxml/jackson/core/JsonParser.html

Can we have jackson version updated to stop this issue form occurring?

Sandalorian commented 2 years ago

related issue https://github.com/neo4j-labs/neosemantics/issues/259 and PR https://github.com/neo4j-labs/neosemantics/pull/262

jbarrasa commented 2 years ago

Fixed in https://github.com/neo4j-labs/neosemantics/releases/tag/4.4.0.2