# Bulk failure: \[RemoteTransportException\[\[Dust\]\[inet\[/172.23.64.85:9300\]\]\[bulk/shard\]\]; nested: NullPointerException; \]

**URL:** <https://discuss.elastic.co/t/bulk-failure-remotetransportexception-dust-inet-172-23-64-85-9300-bulk-shard-nested-nullpointerexception/11574>\
**Category:** Elasticsearch\
**Created:** [April 14, 2013, 1:51pm UTC](https://discuss.elastic.co/t/bulk-failure-remotetransportexception-dust-inet-172-23-64-85-9300-bulk-shard-nested-nullpointerexception/11574 "2013-04-14T13:51:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jingang\_Wang](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jingang\_Wang](https://discuss.elastic.co/u/Jingang_Wang)\
**Post date:** [April 14, 2013, 1:51pm UTC](https://discuss.elastic.co/t/bulk-failure-remotetransportexception-dust-inet-172-23-64-85-9300-bulk-shard-nested-nullpointerexception/11574/1 "2013-04-14T13:51:28Z")

</div>

HI all,

Have anybody encountered the following error before when using bulk java  
api to create indices?  
_[12]: index [201201], type [kba], id  
[1326950520-7bfb3ba1ef213e53a8db20fe14b300e5], message  
[RemoteTransportException[[Dust][inet[/172.23.64.85:9300]][bulk/shard]];  
nested: NullPointerException; ]_

It looked like that there existed some mismatched fields? but I did not  
have some

the mapping setting of my index is listed belows :  
XContentBuilder mapping = jsonBuilder()  
.startObject()  
.startObject("kba")  
.startObject("properties")  
.startObject("\_source").field("compress", "true").endObject()  
.startObject("stream\_id").field("type",  
"string").field("index","no").endObject()  
.startObject("source").field("type", "string").field("index",  
"no").endObject()  
.startObject("epoch\_ticks").field("type",  
"double").field("index", "no").endObject()  
.startObject("zulu\_timestamp").field("type",  
"string").field("index","no").endObject()

.startObject("title\_cleansed").field("type","string").field("index",  
"yes").endObject()

.startObject("title\_ner").field("type","string").field("index","no").endObject()  
.startObject("body\_cleansed").field("type","string").endObject()

.startObject("body\_ner").field("type","string").field("index","no").endObject()  
.endObject()  
.endObject()  
.endObject();  
PutMappingRequest mappingRequest =  
Requests.putMappingRequest(indexName).type("kba").source(mapping);  
client.admin().indices().putMapping(mappingRequest).actionGet();

I am using ElasticSearch 0.90.beta1 and I add about 500 docs in  
one bulkRequest object.

Thanks in advance.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 15, 2013, 6:48am UTC](https://discuss.elastic.co/t/bulk-failure-remotetransportexception-dust-inet-172-23-64-85-9300-bulk-shard-nested-nullpointerexception/11574/2 "2013-04-15T06:48:44Z")

</div>

Hey,

first, can you test with 0.90.0.RC2 to make sure you are using the latest  
version?  
second, can you post us a complete sample (as a gist preferrably), what you  
were doing, so we can reproduce the issue?  
third, can you check your logfiles to get a complete stack trace?

Also the '\_source' configuration should be stored outside the 'properties'  
field

--Alex

On Sun, Apr 14, 2013 at 3:51 PM, Jingang Wang [bitwjg@gmail.com](mailto:bitwjg@gmail.com) wrote:

> HI all,
> 
> Have anybody encountered the following error before when using bulk java  
> api to create indices?  
> _[12]: index [201201], type [kba], id  
> [1326950520-7bfb3ba1ef213e53a8db20fe14b300e5], message  
> [RemoteTransportException[[Dust][inet[/172.23.64.85:9300]][bulk/shard]];  
> nested: NullPointerException; ]_
> 
> It looked like that there existed some mismatched fields? but I did not  
> have some
> 
> the mapping setting of my index is listed belows :  
> XContentBuilder mapping = jsonBuilder()  
> .startObject()  
> .startObject("kba")  
> .startObject("properties")  
> .startObject("\_source").field("compress", "true").endObject()  
> .startObject("stream\_id").field("type",  
> "string").field("index","no").endObject()  
> .startObject("source").field("type", "string").field("index",  
> "no").endObject()  
> .startObject("epoch\_ticks").field("type",  
> "double").field("index", "no").endObject()  
> .startObject("zulu\_timestamp").field("type",  
> "string").field("index","no").endObject()
> 
> .startObject("title\_cleansed").field("type","string").field("index",  
> "yes").endObject()
> 
> .startObject("title\_ner").field("type","string").field("index","no").endObject()  
> .startObject("body\_cleansed").field("type","string").endObject()
> 
> .startObject("body\_ner").field("type","string").field("index","no").endObject()  
> .endObject()  
> .endObject()  
> .endObject();  
> PutMappingRequest mappingRequest =  
> Requests.putMappingRequest(indexName).type("kba").source(mapping);  
> client.admin().indices().putMapping(mappingRequest).actionGet();
> 
> I am using Elasticsearch 0.90.beta1 and I add about 500 docs in  
> one bulkRequest object.
> 
> Thanks in advance.
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:41am UTC](https://discuss.elastic.co/t/bulk-failure-remotetransportexception-dust-inet-172-23-64-85-9300-bulk-shard-nested-nullpointerexception/11574/3 "2017-07-06T02:41:08Z")

</div>


