poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46391] New: java.io.IOException: Cannot remove block[ 11024 ]; out of range[ 0 - 9406 ]
Date Sat, 13 Dec 2008 19:31:22 GMT

           Summary: java.io.IOException: Cannot remove block[ 11024 ]; out
                    of range[ 0 - 9406 ]
           Product: POI
           Version: 3.2-FINAL
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POIFS
        AssignedTo: dev@poi.apache.org
        ReportedBy: jariniskala@gmail.com
                CC: jariniskala@gmail.com

I have customer file (included as attachment) that causes an
java.io.IOException: Cannot remove block[ 11024 ]; out of range[ 0 - 9406 ]
when trying to create a POIFSFileSystem for it. E.g. POIFSFileSystem fs = new

This problem is seen with poi-3.2-FINAL-20081019 as well as with the latest

Looks like the issue is that the file is 4,816,896 bytes which is 9408 512 byte
big blocks. However, when the POIFS is reading the small blocks it follows the
entries links it is expecting to be able to access entries greater than 11000,
with what looks to be 11036 as the limit. The entries does look valid as it has
an end of chain (-2) coming right after the invalid index. So most likely this
means that not all of the blocks are 512 bytes… 

I attempted to just ignore the error and this results in some missing
information. However, the information that is found is correct.

I’m completely new to this code so if anyone could help me with this it would
be greatly appreciated.

Here’s also the stack trace:

BlockAllocationTableReader.fetchBlocks(int, BlockList) line: 192 
RawDataBlockList(BlockListImpl).fetchBlocks(int) line: 130          
SmallBlockTableReader.getSmallDocumentBlocks(RawDataBlockList, RootProperty,
int) line: 59 
POIFSFileSystem.<init>(InputStream) line: 177    

This file is a 2007 MS Project file and MS Project opens this file
successfully. Also re-saving within MS Project does not clear this problem so
it appears to be a persistent condition.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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

View raw message