Skip to content

Move to Jackson 2.8 or avoid calling GeneratorBase.getOutputContext() #20089

Closed
@odrotbohm

Description

@odrotbohm

Jackson 2.8 changed the method signature of GeneratorBase.getOutputContext() which renders code compiled against previous versions of it unusable on 2.8:

Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.base.GeneratorBase.getOutputContext()Lcom/fasterxml/jackson/core/json/JsonWriteContext;
    at org.elasticsearch.common.xcontent.json.JsonXContentGenerator.writeEndRaw(JsonXContentGenerator.java:327)
    at org.elasticsearch.common.xcontent.json.JsonXContentGenerator.writeRawField(JsonXContentGenerator.java:351)
    at org.elasticsearch.common.xcontent.XContentBuilder.rawField(XContentBuilder.java:909)

I've filed an issue with Jackson already, but doubt they're going to revert this as it will break code compiled against 2.8 then :(. Any chance you can avoid calling this method or maybe even upgrade to Jackson 2.8? This issue prevents Spring Data Elasticsearch from running on Jackson 2.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions