Skip to content

remove conflicting dependencies of Jackson - #410

Merged
alethander merged 1 commit into
devfrom
fix-JsonGenerator-writeStartArray-NoSuchMethodError
Oct 8, 2021
Merged

remove conflicting dependencies of Jackson#410
alethander merged 1 commit into
devfrom
fix-JsonGenerator-writeStartArray-NoSuchMethodError

Conversation

@alethander

Copy link
Copy Markdown
Contributor

Fix

Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonGenerator.writeStartArray(Ljava/lang/Object;I)V
        at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:78)
        at com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer.serialize(IndexedListSerializer.java:18)
        at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:727)
        at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:722)

Spring Boot already has jackson-databind:2.10.0 as a transitive dependency.
Apparently, there is some version clash when two versions are on the classpath.

@alethander
alethander requested review from kepricon and slinlee October 7, 2021 23:47

@slinlee slinlee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

@alethander
alethander merged commit 475507d into dev Oct 8, 2021
@alethander
alethander deleted the fix-JsonGenerator-writeStartArray-NoSuchMethodError branch October 8, 2021 00:02
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

Successfully merging this pull request may close these issues.

3 participants