Summary: | java.io.IOException: block[ 2 ] already removed | ||
---|---|---|---|
Product: | POI | Reporter: | doubiman |
Component: | POIFS | Assignee: | POI Developers List <dev> |
Status: | RESOLVED WONTFIX | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 3.9-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | File giving the cited error. |
Description
doubiman
2013-06-20 18:44:13 UTC
WorkbookFactory will take a NPOIFSFileSystem just as easily as a POIFSFileSystem, so I'd suggest you just switch your code to using the former instead of the latter. With NPOIFSFileSystem I can open your file without issues. The POIFSFileSystem has one or two very hard baked assumptions about the file format that are almost, but not quite always correct. I think your file has hit one of those. NPOIFSFileSystem takes a slightly different approach, which avoids this class of problem, and also has the advantage of needing less memory. The plan was to switch everything to NPOIFSFileSystem one release after write support was finished in it, but there hasn't been any drive/funding/need of late to complete the write support... |