Bug 44594 - ArrayIndexOutOfBoundsException in VisioTextExtractor
Summary: ArrayIndexOutOfBoundsException in VisioTextExtractor
Status: RESOLVED DUPLICATE of bug 44501
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.0-dev
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-13 01:25 UTC by Yury Batrakov
Modified: 2008-03-13 06:21 UTC (History)
0 users



Attachments
Visio file that caused an exception (53.00 KB, application/octet-stream)
2008-03-13 01:26 UTC, Yury Batrakov
Details
File test3.vsd (68.00 KB, application/octet-stream)
2008-03-13 01:34 UTC, Yury Batrakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yury Batrakov 2008-03-13 01:25:16 UTC
Here is ArrayIndexOutOfBoundsException in org.apache.poi.hdgf.extractor.VisioTextExtractor, problem file is attached

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3785
        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:109)
        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)
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.main(VisioTextExtractor.java:113)
Comment 1 Yury Batrakov 2008-03-13 01:26:06 UTC
Created attachment 21658 [details]
Visio file that caused an exception
Comment 2 Yury Batrakov 2008-03-13 01:34:06 UTC
Also I've got the following exception on file test3 (attached)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.findText(VisioTextExtractor.java:78)
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.findText(VisioTextExtractor.java:68)
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.findText(VisioTextExtractor.java:68)
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.getAllText(VisioTextExtractor.java:60)
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.getText(VisioTextExtractor.java:94)
        at org.apache.poi.hdgf.extractor.VisioTextExtractor.main(VisioTextExtractor.java:116)
Comment 3 Yury Batrakov 2008-03-13 01:34:44 UTC
Created attachment 21659 [details]
File test3.vsd
Comment 4 Yury Batrakov 2008-03-13 02:19:27 UTC
This is duplicate to 44501, sorry
Comment 5 Nick Burch 2008-03-13 06:21:01 UTC

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