Reputation: 4949
i'm getting the error:
Exception in thread "main" java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator._writeBytes(UTF8JsonGenerator.java:1124)
at org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator._verifyValueWrite(UTF8JsonGenerator.java:984)
at org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator.writeNumber(UTF8JsonGenerator.java:797)
at org.elasticsearch.common.jackson.core.util.JsonGeneratorDelegate.writeNumber(JsonGeneratorDelegate.java:266)
at org.elasticsearch.common.xcontent.json.JsonXContentGenerator.writeNumber(JsonXContentGenerator.java:114)
at org.elasticsearch.common.xcontent.XContentBuilder.value(XContentBuilder.java:981)
at TreMVN.DNM.App.main(App.java:174)
to "line-174" of the following:
XContentBuilder o = response.getFromContext("3");
o.contentType();
o.value(75); // line-174
response
here is of type org.elasticsearch.action.index.IndexResponse
and
org.elasticsearch.common.xcontent.XContentBuilder
is the type of o
.
why this error?
//-------------------
in another line - the source of the package org.elasticsearch.common.jackson
didn't "come out of the box". it's not in Javadocs either.
what am i missing ???
TIA.
Upvotes: 0
Views: 273
Reputation: 21
org.elasticsearch.common.jackson is a repackage of jackson library to avoid package name collision
Upvotes: 1