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

           Summary: Unable to create excel file
           Product: POI
           Version: 3.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I am trying to read a excel file using POI and getting following the following
exception.

org.apache.poi.hssf.record.RecordFormatException: Unable to construct record
instance
        at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:199)
        at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:117)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:207)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:148)
        at
com.abc.handler.NAVXLSFileHandler.createWorkBook(NAVXLSFileHandler.java:323)
        at com.abc.handler.NAVXLSFileHandler.main(NAVXLSFileHandler.java:230)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java:187)
        ... 5 more
Caused by: java.lang.IllegalArgumentException: compressByte in continue records
must be 1 while reading unicode LE string
        at
org.apache.poi.hssf.record.RecordInputStream.readUnicodeLEString(RecordInputStream.java:260)
        at
org.apache.poi.hssf.record.TextObjectRecord.processRawString(TextObjectRecord.java:194)
        at
org.apache.poi.hssf.record.TextObjectRecord.fillFields(TextObjectRecord.java:49)
        at org.apache.poi.hssf.record.Record.<init>(Record.java:55)
        at
org.apache.poi.hssf.record.TextObjectBaseRecord.<init>(TextObjectBaseRecord.java:80)
        at
org.apache.poi.hssf.record.TextObjectRecord.<init>(TextObjectRecord.java:37)
        ... 10 more


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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