You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tim Allison (JIRA)" <ji...@apache.org> on 2017/01/13 12:35:26 UTC

[jira] [Resolved] (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 ]

Tim Allison resolved TIKA-2215.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.15
                   2.0

resolved with TIKA-2159

> 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
>             Fix For: 2.0, 1.15
>
>         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)