https://issues.apache.org/bugzilla/show_bug.cgi?id=57194

            Bug ID: 57194
           Summary: org.apache.poi.hssf.record.RecordFormatException: Not
                    enough data (1) to read requested (2) bytes
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: [email protected]
          Reporter: [email protected]

I have an (xls) file with this issue. Unfortunately, it is not a public
document so I can't post it. Happy to email it to someone who can look at it.
If I open it using my Excel 10 and just re-save it, the issue goes away, so I
can't edit out the confidential info and email it.

org.apache.poi.hssf.record.RecordFormatException: Not enough data (1) to read
requested (2) bytes
    at
org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:216)
    at
org.apache.poi.hssf.record.RecordInputStream.readShort(RecordInputStream.java:233)
    at
org.apache.poi.hssf.record.cont.ContinuableRecordInput.readShort(ContinuableRecordInput.java:70)
    at
org.apache.poi.hssf.record.common.UnicodeString$ExtRst.<init>(UnicodeString.java:160)
    at
org.apache.poi.hssf.record.common.UnicodeString.<init>(UnicodeString.java:437)
    at
org.apache.poi.hssf.record.SSTDeserializer.manufactureStrings(SSTDeserializer.java:57)
    at org.apache.poi.hssf.record.SSTRecord.<init>(SSTRecord.java:247)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at
org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:87)
    at
org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:338)
    at
org.apache.poi.hssf.record.RecordFactoryInputStream.readNextRecord(RecordFactoryInputStream.java:285)
    at
org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:251)
    at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:480)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:301)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:264)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:199)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:342)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:323)
    at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:76)

-- 
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