https://bz.apache.org/bugzilla/show_bug.cgi?id=65887

            Bug ID: 65887
           Summary: XLS can't be loaded after upgrade from 5.1.0 to 5.2.0
           Product: POI
           Version: 5.2.0-FINAL
          Hardware: PC
                OS: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: HSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

After upgrading from 5.1.0 to 5.2.0 I can't open the same XLS file because I am
getting the following error:

org.apache.poi.util.RecordFormatException: Tried to allocate an array of length
2,000,001, but the maximum length for this record type is 2,000,000.
If the file is not corrupt, please open an issue on bugzilla to request
increasing the maximum allowable size for this record type.
As a temporary workaround, consider setting a higher override value with
IOUtils.setByteArrayMaxOverride()
        at org.apache.poi.util.IOUtils.throwRFE(IOUtils.java:535)
~[lisy-starter-4.7.3-SNAPSHOT-fat.jar:?]
        at org.apache.poi.util.IOUtils.checkLength(IOUtils.java:212)
~[lisy-starter-4.7.3-SNAPSHOT-fat.jar:?]
        at org.apache.poi.util.IOUtils.safelyAllocateCheck(IOUtils.java:497)
~[lisy-starter-4.7.3-SNAPSHOT-fat.jar:?]
        at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:180)
~[lisy-starter-4.7.3-SNAPSHOT-fat.jar:?]
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:385)
~[lisy-starter-4.7.3-SNAPSHOT-fat.jar:?]
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:445)
~[lisy-starter-4.7.3-SNAPSHOT-fat.jar:?]

Downgrading works.
The production file was larger than my test file, so the error was seen first
in production.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to