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)
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)
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)
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?
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)
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?
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)
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.