You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Seva Alekseyev (JIRA)" <ji...@apache.org> on 2016/12/19 15:56:58 UTC

[jira] [Updated] (TIKA-2215) TikaException about "Invalid embedded resource" on a valid PPT file

     [ https://issues.apache.org/jira/browse/TIKA-2215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Seva Alekseyev updated TIKA-2215:
---------------------------------
    Attachment: Iverson.ppt

> 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)