poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56465] New: Error message: "does your POIFS have circular or duplicate block references"
Date Mon, 28 Apr 2014 07:03:58 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56465

            Bug ID: 56465
           Summary: Error message: "does your POIFS have circular or
                    duplicate block references"
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POIFS
          Assignee: dev@poi.apache.org
          Reporter: peter.fetzer@nuix.com

Created attachment 31565
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31565&action=edit
zip file containing 3 sample word documents

We processed some client documents where this exception was raised.  I can
recreate the exception if I take a 'good' Word document, and zero out the last
100 or so bytes, samples attached.  I'm guessing the problem documents had an
error when writing to disk.  The zeroed bytes 

Microsoft Word opens these documents okay, and saving them in Word will fix
them.

Attached are
1. original document
2. corrupted version, I've zeroed out a bunch of bytes at the end, and slightly
reduced the file size (matching the original client documents)
3. fixed version, after opened and saved in Word 2013

The full exception is


java.io.IOException: block[ 0 ] already removed - does your POIFS have circular
or duplicate block references? 
        at
org.apache.poi.poifs.storage.BlockListImpl.remove(BlockListImpl.java:89) 
        at
org.apache.poi.poifs.storage.SmallDocumentBlockList.remove(SmallDocumentBlockList.java:30)

        at
org.apache.poi.poifs.storage.BlockAllocationTableReader.fetchBlocks(BlockAllocationTableReader.java:221)

        at
org.apache.poi.poifs.storage.BlockListImpl.fetchBlocks(BlockListImpl.java:123) 
        at
org.apache.poi.poifs.storage.SmallDocumentBlockList.fetchBlocks(SmallDocumentBlockList.java:30)

        at
org.apache.poi.poifs.filesystem.POIFSFileSystem.processProperties(POIFSFileSystem.java:535)

        at
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:164)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message