# Upgrading from ElasticSearch from version 0.20.1 to version 1.4.0

**URL:** <https://discuss.elastic.co/t/upgrading-from-elasticsearch-from-version-0-20-1-to-version-1-4-0/20798>\
**Category:** Elasticsearch\
**Created:** [November 17, 2014, 10:18pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-from-version-0-20-1-to-version-1-4-0/20798 "2014-11-17T22:18:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [November 17, 2014, 10:18pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-from-version-0-20-1-to-version-1-4-0/20798/1 "2014-11-17T22:18:13Z")

</div>

Hi,

## Upgraded ElasticSearch server to version 1.4.0. Compiled project with 1.4.0 artifact in pom file. Get NullPointer exception on JestClient for the code that works in version 0.20.1 when a document is indexed. Stack trace:

## ERROR 2014-11-17 14:29:35,238 - AbstractJestClient.isOperationSucceed(90) | Exception occurred during the parsing result. Since http ok g oing to return isSucceed as a true java.lang.NullPointerException at io.searchbox.client.AbstractJestClient.isOperationSucceed(AbstractJestClient.java:79) at io.searchbox.client.AbstractJestClient.createNewElasticSearchResult(AbstractJestClient.java:62) at io.searchbox.client.http.JestHttpClient.deserializeResponse(JestHttpClient.java:149) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:59) at app.common.search.ESUtils.indexDocument(ESUtils.java:65)

Any help is greatly appreciated.

Regards,  
Andy

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 17, 2014, 10:22pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-from-version-0-20-1-to-version-1-4-0/20798/2 "2014-11-17T22:22:03Z")

</div>

Did you upgrade directly to 1.4.0, or did you do it in major version jumps?

On 18 November 2014 09:18, andyrobin1 via elasticsearch \<  
[elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)\> wrote:

> Hi,
> 
> ## Upgraded Elasticsearch server to version 1.4.0. Compiled project with 1.4.0 artifact in pom file. Get NullPointer exception on JestClient for the code that works in version 0.20.1 when a document is indexed. Stack trace:
> 
> ## ERROR 2014-11-17 14:29:35,238 - AbstractJestClient.isOperationSucceed(90) | Exception occurred during the parsing result. Since http ok g oing to return isSucceed as a true java.lang.NullPointerException at io.searchbox.client.AbstractJestClient.isOperationSucceed(AbstractJestClient.java:79) at io.searchbox.client.AbstractJestClient.createNewElasticSearchResult(AbstractJestClient.java:62) at io.searchbox.client.http.JestHttpClient.deserializeResponse(JestHttpClient.java:149) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:59) at app.common.search.ESUtils.indexDocument(ESUtils.java:65)
> 
> Any help is greatly appreciated.
> 
> Regards,  
> Andy
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmMB1Aai9Z2VS9vcQ6xwSax-tS\_fD19kT87DKefhAu7yQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmMB1Aai9Z2VS9vcQ6xwSax-tS_fD19kT87DKefhAu7yQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [November 17, 2014, 10:31pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-from-version-0-20-1-to-version-1-4-0/20798/3 "2014-11-17T22:31:41Z")

</div>

I upgraded directly to 1.4.0.

On Monday, November 17, 2014 5:22:30 PM UTC-5, Mark Walkom wrote:

> Did you upgrade directly to 1.4.0, or did you do it in major version jumps?
> 
> On 18 November 2014 09:18, andyrobin1 via elasticsearch \<  
> [elasti...@googlegroups.com](mailto:elasti...@googlegroups.com) \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > ## Upgraded Elasticsearch server to version 1.4.0. Compiled project with 1.4.0 artifact in pom file. Get NullPointer exception on JestClient for the code that works in version 0.20.1 when a document is indexed. Stack trace:
> > 
> > ## ERROR 2014-11-17 14:29:35,238 - AbstractJestClient.isOperationSucceed(90) | Exception occurred during the parsing result. Since http ok g oing to return isSucceed as a true java.lang.NullPointerException at io.searchbox.client.AbstractJestClient.isOperationSucceed(AbstractJestClient.java:79) at io.searchbox.client.AbstractJestClient.createNewElasticSearchResult(AbstractJestClient.java:62) at io.searchbox.client.http.JestHttpClient.deserializeResponse(JestHttpClient.java:149) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:59) at app.common.search.ESUtils.indexDocument(ESUtils.java:65)
> > 
> > Any help is greatly appreciated.
> > 
> > Regards,  
> > Andy
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6ba1c307-cf31-4a55-8c71-1b61264357ac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6ba1c307-cf31-4a55-8c71-1b61264357ac%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [November 18, 2014, 4:47pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-from-version-0-20-1-to-version-1-4-0/20798/4 "2014-11-18T16:47:42Z")

</div>

## It appears that the document is indexed properly and is displayed on the es head screen. The response object returned by JestResult response = client.execute(index); seems to be fine as well.

## isSucceeded: true jsonString: {"\_index":"test","\_type":"document","\_id":"f6aa55d3-849e-4fd1-b907-5e656b7dc8fa","\_version":1,"created":true} pathToResult: ok

Any idea why it is throwing the NullPointer exception?

On Monday, November 17, 2014 5:31:41 PM UTC-5, [andyr...@yahoo.com](mailto:andyr...@yahoo.com) wrote:

> I upgraded directly to 1.4.0.
> 
> On Monday, November 17, 2014 5:22:30 PM UTC-5, Mark Walkom wrote:
> 
> > Did you upgrade directly to 1.4.0, or did you do it in major version  
> > jumps?
> > 
> > On 18 November 2014 09:18, andyrobin1 via elasticsearch \<  
> > [elasti...@googlegroups.com](mailto:elasti...@googlegroups.com)\> wrote:
> > 
> > > Hi,
> > > 
> > > ## Upgraded Elasticsearch server to version 1.4.0. Compiled project with 1.4.0 artifact in pom file. Get NullPointer exception on JestClient for the code that works in version 0.20.1 when a document is indexed. Stack trace:
> > > 
> > > ## ERROR 2014-11-17 14:29:35,238 - AbstractJestClient.isOperationSucceed(90) | Exception occurred during the parsing result. Since http ok g oing to return isSucceed as a true java.lang.NullPointerException at io.searchbox.client.AbstractJestClient.isOperationSucceed(AbstractJestClient.java:79) at io.searchbox.client.AbstractJestClient.createNewElasticSearchResult(AbstractJestClient.java:62) at io.searchbox.client.http.JestHttpClient.deserializeResponse(JestHttpClient.java:149) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:59) at app.common.search.ESUtils.indexDocument(ESUtils.java:65)
> > > 
> > > Any help is greatly appreciated.
> > > 
> > > Regards,  
> > > Andy
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3de59600-e4f8-4754-8b06-61e9c57f98c4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3de59600-e4f8-4754-8b06-61e9c57f98c4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [November 18, 2014, 8:35pm UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-from-version-0-20-1-to-version-1-4-0/20798/5 "2014-11-18T20:35:11Z")

</div>

## Debug log doesn't have much info either!

## DEBUG 2014-11-18 14:32:54,508 - JestClientFactory.getObject(35) | Creating HTTP client based on configuration DEBUG 2014-11-18 14:32:54,578 - JestClientFactory.getObject(44) | Default http client is created without multi threaded option INFO 2014-11-18 14:32:54,718 - JestClientFactory.getObject(71) | Node Discovery Disabled... DEBUG 2014-11-18 14:32:54,735 - JestHttpClient.constructHttpMethod(106) | PUT method created based on client request ERROR 2014-11-18 14:32:55,095 - AbstractJestClient.isOperationSucceed(90) | Exception occurred during the parsing result. Since http ok going to return isSucceed as a true java.lang.NullPointerException at io.searchbox.client.AbstractJestClient.isOperationSucceed(AbstractJestClient.java:79) at io.searchbox.client.AbstractJestClient.createNewElasticSearchResult(AbstractJestClient.java:62) at io.searchbox.client.http.JestHttpClient.deserializeResponse(JestHttpClient.java:149) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:59)

On Tuesday, November 18, 2014 11:47:42 AM UTC-5, [andyr...@yahoo.com](mailto:andyr...@yahoo.com) wrote:

> ## It appears that the document is indexed properly and is displayed on the es head screen. The response object returned by JestResult response = client.execute(index); seems to be fine as well.
> 
> ## isSucceeded: true jsonString: {"\_index":"test","\_type":"document","\_id":"f6aa55d3-849e-4fd1-b907-5e656b7dc8fa","\_version":1,"created":true} pathToResult: ok
> 
> Any idea why it is throwing the NullPointer exception?
> 
> On Monday, November 17, 2014 5:31:41 PM UTC-5, [andyr...@yahoo.com](mailto:andyr...@yahoo.com) wrote:
> 
> > I upgraded directly to 1.4.0.
> > 
> > On Monday, November 17, 2014 5:22:30 PM UTC-5, Mark Walkom wrote:
> > 
> > > Did you upgrade directly to 1.4.0, or did you do it in major version  
> > > jumps?
> > > 
> > > On 18 November 2014 09:18, andyrobin1 via elasticsearch \<  
> > > [elasti...@googlegroups.com](mailto:elasti...@googlegroups.com)\> wrote:
> > > 
> > > > Hi,
> > > > 
> > > > ## Upgraded Elasticsearch server to version 1.4.0. Compiled project with 1.4.0 artifact in pom file. Get NullPointer exception on JestClient for the code that works in version 0.20.1 when a document is indexed. Stack trace:
> > > > 
> > > > ## ERROR 2014-11-17 14:29:35,238 - AbstractJestClient.isOperationSucceed(90) | Exception occurred during the parsing result. Since http ok g oing to return isSucceed as a true java.lang.NullPointerException at io.searchbox.client.AbstractJestClient.isOperationSucceed(AbstractJestClient.java:79) at io.searchbox.client.AbstractJestClient.createNewElasticSearchResult(AbstractJestClient.java:62) at io.searchbox.client.http.JestHttpClient.deserializeResponse(JestHttpClient.java:149) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:59) at app.common.search.ESUtils.indexDocument(ESUtils.java:65)
> > > > 
> > > > Any help is greatly appreciated.
> > > > 
> > > > Regards,  
> > > > Andy
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/30b746c7-1868-4445-b4b1-a9c5437a4e2b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/30b746c7-1868-4445-b4b1-a9c5437a4e2b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:49am UTC](https://discuss.elastic.co/t/upgrading-from-elasticsearch-from-version-0-20-1-to-version-1-4-0/20798/6 "2017-07-06T00:49:09Z")

</div>


