poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58562] Problems with protect record
Date Thu, 29 Oct 2015 12:26:02 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58562

--- Comment #2 from Francesco Petruzzi <francesco.petruzzi@innovery.it> ---
The file I use is confidential, I am waiting for a file free for distribution.
If I load and save the file with Excel2007 the output file is ok.

This is the stack trace when try to load ProtectRecord on original file:

org.apache.poi.hssf.record.RecordFormatException: Not enough data (0) 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.ProtectRecord.<init>(ProtectRecord.java:50)
    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:310)
    at
org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:276)
    at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:480)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:326)
    at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:115)
    at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:172)
    at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:143)
    at eu.inn.xlsx.JExcelExport.doExportCSV(JExcelExport.java:198)
    at eu.inn.xlsx.JExcelExport.doExportCSV(JExcelExport.java:180)
    at eu.inn.ExcelToCSV.main(ExcelToCSV.java:314)
eu.inn.xlsx.JExcelException: Error:161 Opening input Excel file: Not enough
data (0) to read requested (2) bytes
    at eu.inn.xlsx.JExcelExport.doExportCSV(JExcelExport.java:231)
    at eu.inn.xlsx.JExcelExport.doExportCSV(JExcelExport.java:180)
    at eu.inn.ExcelToCSV.main(ExcelToCSV.java:314)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message