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)
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.