Seva Alekseyev created TIKA-2215:
------------------------------------
Summary: TikaException about "Invalid embedded resource" on a
valid PPT file
Key: TIKA-2215
URL: https://issues.apache.org/jira/browse/TIKA-2215
Project: Tika
Issue Type: Bug
Components: parser
Affects Versions: 1.14
Environment: Windows 7 x64, JVM 1.8.0_101
Reporter: Seva Alekseyev
Attachments: Iverson.ppt
On the attached file, which opens with PowerPoint, the Tika parser throws the
following error:
org.apache.tika.exception.TikaException: Invalid embedded resource
at
org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc:243
at
org.apache.tika.parser.microsoft.HSLFExtractor.handleSlideEmbeddedResources:390
at org.apache.tika.parser.microsoft.HSLFExtractor.parse:142
at org.apache.tika.parser.microsoft.OfficeParser.parse:172
at org.apache.tika.parser.microsoft.OfficeParser.parse:130
Caused by: java.lang.IndexOutOfBoundsException: Block 32630271 not found
at org.apache.poi.poifs.filesystem.NPOIFSFileSystem.getBlockAt:486
at
org.apache.poi.poifs.filesystem.NPOIFSStream$StreamBlockByteBufferIterator.next:169
at
org.apache.poi.poifs.filesystem.NPOIFSStream$StreamBlockByteBufferIterator.next:142
at org.apache.poi.poifs.filesystem.NDocumentInputStream.readFully:248
at org.apache.poi.poifs.filesystem.DocumentInputStream.readFully:165
at org.apache.poi.poifs.filesystem.DocumentInputStream.readFully:160
at
org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc:226
at
org.apache.tika.parser.microsoft.HSLFExtractor.handleSlideEmbeddedResources:390
at org.apache.tika.parser.microsoft.HSLFExtractor.parse:142
at org.apache.tika.parser.microsoft.OfficeParser.parse:172
at org.apache.tika.parser.microsoft.OfficeParser.parse:130
Caused by: java.lang.IndexOutOfBoundsException: Unable to read 512 bytes from
16706699264 in stream of length 164352
at org.apache.poi.poifs.nio.ByteArrayBackedDataSource.read:42
at org.apache.poi.poifs.filesystem.NPOIFSFileSystem.getBlockAt:484
at
org.apache.poi.poifs.filesystem.NPOIFSStream$StreamBlockByteBufferIterator.next:169
at
org.apache.poi.poifs.filesystem.NPOIFSStream$StreamBlockByteBufferIterator.next:142
at org.apache.poi.poifs.filesystem.NDocumentInputStream.readFully:248
at org.apache.poi.poifs.filesystem.DocumentInputStream.readFully:165
at org.apache.poi.poifs.filesystem.DocumentInputStream.readFully:160
at
org.apache.tika.parser.microsoft.AbstractPOIFSExtractor.handleEmbeddedOfficeDoc:226
at
org.apache.tika.parser.microsoft.HSLFExtractor.handleSlideEmbeddedResources:390
at org.apache.tika.parser.microsoft.HSLFExtractor.parse:142
at org.apache.tika.parser.microsoft.OfficeParser.parse:172
at org.apache.tika.parser.microsoft.OfficeParser.parse:130
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)