Error : java.lang.NoSuchFieldError: FAIL_ON_SYMBOL_HASH_OVERFLOW

I am getting following error on doing contentBuilder = XContentFactory.jsonBuilder().startObject().prettyPrint();

java.lang.NoSuchFieldError: FAIL_ON_SYMBOL_HASH_OVERFLOW
at org.elasticsearch.common.xcontent.json.JsonXContent.(JsonXCon
at org.elasticsearch.common.xcontent.XContentFactory.contentBuilder(XCon
at org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder(XConten

Please help me.

I think that you have conflicting versions of Jackson on your classpath (the dreaded JAR hell). Please ensure that you have the versions of Jackson that Elasticsearch depends on, and that you don't have any conflicting versions.

1 Like

Hi Nitin, Have you got answer for this issue? Me too facing same problem? What did you do to resolve this?

last comment was solved here:

Man that escalated quickly :smiley:
I also had multiple versions of jackson. Removing older version helped.