Bulk API Indexing Status 500 Error NullPointerException[null]

Dear all,

I am encountering a weird issue. When I use the Bulk API (REST) to index
documents, I am getting for the same documents each time the following
error returned:

"status":500,"error":"NullPointerException[null]"

However, when I re-index the rejected documents, it will index them the
second time.

Is there a work-around for this? Is it a connectivity issue?

Help greatly appreciated!

Thanks!
/JZ

--
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/e11ea64e-4e01-43ea-973d-8c58e7020e5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Can you show the data you send in the bulk request, and your code?

Most probably you send null values for index or type.

Jörg

On Fri, Dec 19, 2014 at 2:28 PM, drjz juntezhang@gmail.com wrote:

Dear all,

I am encountering a weird issue. When I use the Bulk API (REST) to index
documents, I am getting for the same documents each time the following
error returned:

"status":500,"error":"NullPointerException[null]"

However, when I re-index the rejected documents, it will index them the
second time.

Is there a work-around for this? Is it a connectivity issue?

Help greatly appreciated!

Thanks!
/JZ

--
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/e11ea64e-4e01-43ea-973d-8c58e7020e5c%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e11ea64e-4e01-43ea-973d-8c58e7020e5c%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/CAKdsXoHe7hzKCU46wxy7V25Ygh-1bnO-wcUbrqpOH9n2doAh5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

I solved this by adding this setting in the index configuration.

"index" : {
"refresh_interval" : "-1"
}

So it was a connectivity issue after all. :slight_smile:

/JZ

On Friday, December 19, 2014 2:49:05 PM UTC+1, Jörg Prante wrote:

Can you show the data you send in the bulk request, and your code?

Most probably you send null values for index or type.

Jörg

On Fri, Dec 19, 2014 at 2:28 PM, drjz <junte...@gmail.com <javascript:>>
wrote:

Dear all,

I am encountering a weird issue. When I use the Bulk API (REST) to index
documents, I am getting for the same documents each time the following
error returned:

"status":500,"error":"NullPointerException[null]"

However, when I re-index the rejected documents, it will index them the
second time.

Is there a work-around for this? Is it a connectivity issue?

Help greatly appreciated!

Thanks!
/JZ

--
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/e11ea64e-4e01-43ea-973d-8c58e7020e5c%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/e11ea64e-4e01-43ea-973d-8c58e7020e5c%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/fd53d6f2-4531-4d19-922a-5292bf2ef2ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.