Summary: | OutOfMemoryError reading Excel file when page count "lies" | ||
---|---|---|---|
Product: | POI | Reporter: | Trejkaz (pen name) <trejkaz> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PatchAvailable |
Priority: | P2 | ||
Version: | 3.0-dev | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Attachments: | Patch to work around this issue |
Description
Trejkaz (pen name)
2006-06-27 01:12:08 UTC
Created attachment 18539 [details]
Patch to work around this issue
No unit tests I'm afraid. The document in question was confidential, and I'm not sure how to reproduce bogus documents. (Hex editor, perhaps? Hmm.) Trejkaz, Any chance to get a unit test for this? The fix looks quite harmless to me but applying it without a testcase is against the rules. Regards, Yegor I'm not sure how I would create the test document. Trejkaz, No patch is required. It turns out that the code you are suggesting is already present in the HSSFWorkbook constructor: recOffset = sheet.getEofLoc()+1; if (recOffset == 1) { break; } Could you confirm that there are no problems with the latest 3.0 RC2 jar? Yegor |