{"action":"closed","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-mapper-attachments/issues/93","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch-mapper-attachments/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch-mapper-attachments/issues/93/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch-mapper-attachments/issues/93/events","html_url":"https://github.com/elasticsearch/elasticsearch-mapper-attachments/issues/93","id":51847994,"number":93,"title":"NullpointerException when parsing large PDF documents","user":{"login":"istvano","id":1375704,"avatar_url":"https://avatars.githubusercontent.com/u/1375704?v=3","gravatar_id":"","url":"https://api.github.com/users/istvano","html_url":"https://github.com/istvano","followers_url":"https://api.github.com/users/istvano/followers","following_url":"https://api.github.com/users/istvano/following{/other_user}","gists_url":"https://api.github.com/users/istvano/gists{/gist_id}","starred_url":"https://api.github.com/users/istvano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istvano/subscriptions","organizations_url":"https://api.github.com/users/istvano/orgs","repos_url":"https://api.github.com/users/istvano/repos","events_url":"https://api.github.com/users/istvano/events{/privacy}","received_events_url":"https://api.github.com/users/istvano/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-12T20:13:49Z","updated_at":"2015-02-11T21:23:59Z","closed_at":"2015-02-11T21:23:59Z","body":"Hi Guys,\r\n\r\nI am having trouble indexing some of our documents. They are sometimes over 20Mb.\r\n\r\nI receive the following exception.\r\n\r\n[2014-12-08 10:48:43,375][WARN ][org.apache.pdfbox.util.PDFStreamEngine] java.lang.NullPointerException\r\njava.lang.NullPointerException\r\nat org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:364)\r\nat org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)\r\nat org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:554)\r\nat org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:268)\r\nat org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:235)\r\nat org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:215)\r\nat org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:456)\r\nat org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:381)\r\nat org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:340)\r\nat org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:106)\r\nat org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:143)\r\nat org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)\r\nat org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)\r\nat org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)\r\nat org.apache.tika.Tika.parseToString(Tika.java:421)\r\nat org.elasticsearch.index.mapper.attachment.AttachmentMapper.parse(AttachmentMapper.java:389)\r\nat org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:648)\r\nat org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:501)\r\nat org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:542)\r\nat org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:491)\r\nat org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:397)\r\nat org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:442)\r\nat org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:157)\r\nat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:535)\r\nat org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:434)\r\nat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\nat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\nat java.lang.Thread.run(Thread.java:745)\r\n\r\nCan this be due to not enough memory allocated to Tika ?\r\n\r\nHow can I allocate more memory to ES so that Tika can benefit from it too ?\r\n\r\nThanks for any hints or help"}}