Bug 28239

Summary: java.io.IOException: Cannot remove block[ 330 ]; out of range
Product: POI Reporter: Ryan Ackley <sackley>
Component: POIFSAssignee: POI Developers List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal CC: trejkaz
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Proposed fix

Description Ryan Ackley 2004-04-06 19:25:36 UTC
I get the following stacktrace on a valid OLE file (MS Project): 

java.io.IOException: Cannot remove block[ 330 ]; out of range

	at org.apache.poi.poifs.storage.BlockListImpl.remove
(BlockListImpl.java:103)

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

	at org.apache.poi.poifs.storage.BlockListImpl.fetchBlocks
(BlockListImpl.java:128)

	at org.apache.poi.poifs.eventfilesystem.POIFSReader.processProperties
(POIFSReader.java:275)

	at org.apache.poi.poifs.eventfilesystem.POIFSReader.processProperties
(POIFSReader.java:228)

	at org.apache.poi.poifs.eventfilesystem.POIFSReader.processProperties
(POIFSReader.java:228)

	at org.apache.poi.poifs.eventfilesystem.POIFSReader.read
(POIFSReader.java:95)
Comment 1 Trejkaz (pen name) 2008-04-29 17:27:37 UTC
Created attachment 21881 [details]
Proposed fix

It is as I thought, removing that one line makes all our files parse correctly.
Comment 2 Trejkaz (pen name) 2008-04-29 17:30:04 UTC
My apologies, the attachment I just put up was really for Bug 44898, but the bugs are very similar and it would be interesting to see if it fixes the problem.
Comment 3 Nick Burch 2008-05-20 08:43:09 UTC

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