# Exception in thread "main" java.lang.NoSuchFieldError: FAIL\_ON\_SYMBOL\_HASH\_OVERFLOW

**URL:** <https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchfielderror-fail-on-symbol-hash-overflow/129346>\
**Category:** Elasticsearch\
**Created:** [April 24, 2018, 4:07pm UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchfielderror-fail-on-symbol-hash-overflow/129346 "2018-04-24T16:07:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jouad\_Mohammed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jouad_mohammed/32/29208_2.png) [@Jouad\_Mohammed](https://discuss.elastic.co/u/Jouad_Mohammed)\
**Post date:** [April 24, 2018, 4:07pm UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchfielderror-fail-on-symbol-hash-overflow/129346/1 "2018-04-24T16:07:10Z")

</div>

HI  
Elasticsearch 6.2  
High level client

//opening

I have the following error with this error :  
Error : Exception in thread "main" java.lang.NoSuchFieldError: FAIL\_ON\_SYMBOL\_HASH\_OVERFLOW

```
  //tag::migration-request-ctor
        IndexRequest request = new IndexRequest("index", "doc", "id"); // <1>
        request.source("{\"field\":\"value\"}", XContentType.JSON);
        //end::migration-request-ctor

        //tag::migration-request-ctor-execution
        IndexResponse response = client.index(request);

```

//this code for opening the host :

```
		RestClientBuilder builder = RestClient.builder(new HttpHost("localhost", 9200, "http"));
		Header[] defaultHeaders = new Header[]{new BasicHeader("header", "value")};
		builder.setDefaultHeaders(defaultHeaders); 
		
		
		RestClient lowLevelRestClient = RestClient.builder(
                new HttpHost("localhost", 9200, "http")).build();;
                
         client =new RestHighLevelClient(lowLevelRestClient);
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 25, 2018, 6:11am UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchfielderror-fail-on-symbol-hash-overflow/129346/2 "2018-04-25T06:11:57Z")

</div>

I think this can happen when you are using an older Jackson lib dependency than the one we are using in the REST Client.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 23, 2018, 6:12am UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchfielderror-fail-on-symbol-hash-overflow/129346/3 "2018-05-23T06:12:07Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
