Upgrading from ElasticSearch from version 0.20.1 to version 1.4.0

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ec9c2a6e-a183-4a18-89bd-7cdea8b4bce6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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> 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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmMB1Aai9Z2VS9vcQ6xwSax-tS_fD19kT87DKefhAu7yQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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 <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 <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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6ba1c307-cf31-4a55-8c71-1b61264357ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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 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> 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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3de59600-e4f8-4754-8b06-61e9c57f98c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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 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 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> 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.
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?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/30b746c7-1868-4445-b4b1-a9c5437a4e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.