{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/11671","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11671/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11671/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11671/events","html_url":"https://github.com/elastic/elasticsearch/issues/11671","id":88425719,"number":11671,"title":"NullPointerException when using bulk import","user":{"login":"hydrogen18","id":130230,"avatar_url":"https://avatars.githubusercontent.com/u/130230?v=3","gravatar_id":"","url":"https://api.github.com/users/hydrogen18","html_url":"https://github.com/hydrogen18","followers_url":"https://api.github.com/users/hydrogen18/followers","following_url":"https://api.github.com/users/hydrogen18/following{/other_user}","gists_url":"https://api.github.com/users/hydrogen18/gists{/gist_id}","starred_url":"https://api.github.com/users/hydrogen18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydrogen18/subscriptions","organizations_url":"https://api.github.com/users/hydrogen18/orgs","repos_url":"https://api.github.com/users/hydrogen18/repos","events_url":"https://api.github.com/users/hydrogen18/events{/privacy}","received_events_url":"https://api.github.com/users/hydrogen18/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Bulk","name":":Bulk","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/adoptme","name":"adoptme","color":"207de5"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/bug","name":"bug","color":"9e2c2c"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2015-06-15T13:22:09Z","updated_at":"2016-09-16T06:41:53Z","closed_at":"2016-09-16T06:41:53Z","body":"While using the bulk import, I got an error message of `NullPointerException[null]`\r\n\r\nFrom the logs:\r\n\r\n```\r\n[2015-06-15 08:03:03,831][DEBUG][action.bulk              ] [Autolycus] [products][3], node[ZrSwGU7bR_Oh9htebqstEA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.bulk.BulkShardRequest@5f410b12]\r\njava.lang.NullPointerException\r\n\tat org.elasticsearch.action.bulk.TransportShardBulkAction.shards(TransportShardBulkAction.java:129)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performReplicas(TransportShardReplicationOperationAction.java:565)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:512)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n[2015-06-15 08:03:03,841][DEBUG][action.bulk              ] [Autolycus] [products][4], node[ZrSwGU7bR_Oh9htebqstEA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.bulk.BulkShardRequest@77230a7b]\r\njava.lang.NullPointerException\r\n\tat org.elasticsearch.action.bulk.TransportShardBulkAction.shards(TransportShardBulkAction.java:129)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performReplicas(TransportShardReplicationOperationAction.java:565)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:512)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n[2015-06-15 08:03:03,865][DEBUG][action.bulk              ] [Autolycus] [products][1], node[ZrSwGU7bR_Oh9htebqstEA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.bulk.BulkShardRequest@7d9b753]\r\njava.lang.NullPointerException\r\n\tat org.elasticsearch.action.bulk.TransportShardBulkAction.shards(TransportShardBulkAction.java:129)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performReplicas(TransportShardReplicationOperationAction.java:565)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:512)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n[2015-06-15 08:03:03,881][DEBUG][action.bulk              ] [Autolycus] [products][2], node[ZrSwGU7bR_Oh9htebqstEA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.bulk.BulkShardRequest@1542dc3d]\r\njava.lang.NullPointerException\r\n\tat org.elasticsearch.action.bulk.TransportShardBulkAction.shards(TransportShardBulkAction.java:129)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performReplicas(TransportShardReplicationOperationAction.java:565)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:512)\r\n\tat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\nRunning 1.4.2 locally on Ubuntu 14.04 LTS\r\n\r\n```\r\n[ericu-destroyer-of-worlds] elasticsearch$ curl localhost:9200\r\n{\r\n  \"status\" : 200,\r\n  \"name\" : \"Autolycus\",\r\n  \"cluster_name\" : \"elasticsearch\",\r\n  \"version\" : {\r\n    \"number\" : \"1.4.2\",\r\n    \"build_hash\" : \"927caff6f05403e936c20bf4529f144f0c89fd8c\",\r\n    \"build_timestamp\" : \"2014-12-16T14:11:12Z\",\r\n    \"build_snapshot\" : false,\r\n    \"lucene_version\" : \"4.10.2\"\r\n  },\r\n  \"tagline\" : \"You Know, for Search\"\r\n}\r\n```"}}
{"actor":{"display_login":"bleskes"}}