Bug 44687 - Unable to Index a Visio Document.
Summary: Unable to Index a Visio Document.
Status: RESOLVED DUPLICATE of bug 44501
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.0-dev
Hardware: Sun SunOS
: P2 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 01:08 UTC by Durga Deep Tirunagari
Modified: 2008-03-27 04:58 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Durga Deep Tirunagari 2008-03-27 01:08:23 UTC
We keep getting the following Exception while trying to use 

           VisioTextExtractor extractor = null;
           String convertedText = null;
           try {
                  extractor = new VisioTextExtractor(isr);
           } catch ( java.io.IOException cie ) {
                    String msg = cie.getMessage();
                    if (LOGGER.isLoggable(Level.WARNING)) {
                        LOGGER.log(Level.WARNING, msg);
                    };
           }
           convertedText = extractor.getText();
           return convertedText;


The following Exception Occurs:

java.lang.ArrayIndexOutOfBoundsException: 1991
        at org.apache.poi.util.LittleEndian.getNumber(LittleEndian.java:492)
        at org.apache.poi.util.LittleEndian.getUInt(LittleEndian.java:164)
        at org.apache.poi.hdgf.chunks.ChunkHeader.createChunkHeader(ChunkHeader.java:43)
        at org.apache.poi.hdgf.chunks.ChunkFactory.createChunk(ChunkFactory.java:108)
        at org.apache.poi.hdgf.streams.ChunkStream.findChunks(ChunkStream.java:54)
        at org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(PointerContainingStream.java:92)
        at org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(PointerContainingStream.java:99)
        at org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(PointerContainingStream.java:99)
        at org.apache.poi.hdgf.HDGFDiagram.<init>(HDGFDiagram.java:92)
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.<init>(VisioTextExtractor.java:46)
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.<init>(VisioTextExtractor.java:50)
Comment 1 Nick Burch 2008-03-27 04:58:54 UTC

*** This bug has been marked as a duplicate of bug 44501 ***