Hi,
I was trying to make use of the VisioTextExtractor to extract a file, but am
ending with this error. Any help on this would be greatly appreaciated..
Needed 19 bytes to create the next chunk header, but only found 4 bytes,
ignorin
g rest of data
Exception in thread "main" java.lang.IllegalArgumentException: Found a chunk
wit
h a negative length, which isn't allowed
at
org.apache.poi.hdgf.chunks.ChunkFactory.createChunk(ChunkFactory.java
:115)
at
org.apache.poi.hdgf.streams.ChunkStream.findChunks(ChunkStream.java:5
8)
at
org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(Poin
terContainingStream.java:92)
at
org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(Poin
terContainingStream.java:99)
at
org.apache.poi.hdgf.streams.PointerContainingStream.findChildren(Poin
terContainingStream.java:99)
at org.apache.poi.hdgf.HDGFDiagram.<init>(HDGFDiagram.java:97)
at org.apache.poi.hdgf.HDGFDiagram.<init>(HDGFDiagram.java:58)
at
org.apache.poi.hdgf.extractor.VisioTextExtractor.<init>(VisioTextExtr
actor.java:47)
at
org.apache.poi.hdgf.extractor.VisioTextExtractor.<init>(VisioTextExtr
actor.java:51)
at
org.apache.poi.hdgf.extractor.VisioTextExtractor.main(VisioTextExtrac
tor.java:115)
Thanks,
Ashok.