lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neilb <nb...@hotmail.com>
Subject Solr indexing with Tika DIH - ZeroByteFileException
Date Tue, 11 Jun 2019 14:27:42 GMT
Hi, while going through solr logs, I found data import error for certain
documents. Here are details about the error.

Exception while processing: file document :
null:org.apache.solr.handler.dataimport.DataImportHandlerException: Unable
to read content Processing Document # 7866
	at
org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:69)
	at
org.apache.solr.handler.dataimport.TikaEntityProcessor.nextRow(TikaEntityProcessor.java:171)
	at
org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityProcessorWrapper.java:267)
	at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:476)
	at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:517)
	at
org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:415)
	at
org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:330)
	at
org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:233)
	at
org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:424)
	at
org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:483)
	at
org.apache.solr.handler.dataimport.DataImporter.lambda$runAsync$0(DataImporter.java:466)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.tika.exception.ZeroByteFileException: InputStream must
have > 0 bytes
	at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:122)
	at
org.apache.solr.handler.dataimport.TikaEntityProcessor.nextRow(TikaEntityProcessor.java:165)


How do I know which document(document name with path) is #7866? And how do I
ignore ZeroByteFileException as document network share is not in my control.
Users can upload any size pdfs to it.

Thanks!



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Mime
View raw message