Error : java.lang.NoSuchFieldError: FAIL_ON_SYMBOL_HASH_OVERFLOW

Hi,
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
tent.java:49)
at org.elasticsearch.common.xcontent.XContentFactory.contentBuilder(XCon
tentFactory.java:122)
at org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder(XConten
tFactory.java:49)

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:

https://discuss.elastic.co/t/elasticsearch-nosuchfielderror/?source_topic_id=44759

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