# NeedQuickHelp: java.lang.NoSuchFieldError: LUCENE\_7\_3\_1

**URL:** <https://discuss.elastic.co/t/needquickhelp-java-lang-nosuchfielderror-lucene-7-3-1/138766>\
**Category:** Elasticsearch\
**Created:** [July 5, 2018, 3:31pm UTC](https://discuss.elastic.co/t/needquickhelp-java-lang-nosuchfielderror-lucene-7-3-1/138766 "2018-07-05T15:31:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [July 5, 2018, 3:31pm UTC](https://discuss.elastic.co/t/needquickhelp-java-lang-nosuchfielderror-lucene-7-3-1/138766/1 "2018-07-05T15:31:53Z")

</div>

I am upgrading from 6.1.3 to 6.3.0

I am trying to initialize:  
SearchSourceBuilder ssb = new SearchSourceBuilder();

Getting this error on above line:

```
java.lang.NoSuchFieldError: LUCENE_7_3_1
	at org.elasticsearch.Version.<clinit>(Version.java:168)
	at org.elasticsearch.common.logging.DeprecationLogger.<clinit>(DeprecationLogger.java:159)
	at org.elasticsearch.search.builder.SearchSourceBuilder.<clinit>(SearchSourceBuilder.java:80)
	at com.tomtom.andorra.essearcher.SearchEfforts.call(SearchEfforts.java:142)
	at com.tomtom.andorra.essearcher.SearchEfforts.call(SearchEfforts.java:1)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

```

This worked well with 6.1.3.

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [July 5, 2018, 3:51pm UTC](https://discuss.elastic.co/t/needquickhelp-java-lang-nosuchfielderror-lucene-7-3-1/138766/2 "2018-07-05T15:51:31Z")

</div>

My bad. I had got 7.2.1 dependency on my classpath. Fixed it myself.

---

<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:** [August 2, 2018, 3:51pm UTC](https://discuss.elastic.co/t/needquickhelp-java-lang-nosuchfielderror-lucene-7-3-1/138766/3 "2018-08-02T15:51:38Z")

</div>

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