https://bz.apache.org/bugzilla/show_bug.cgi?id=62439
Bug ID: 62439
Summary: Initialisation of record 0x1D(SelectionRecord) left 1
bytes remaining still to be read.
Product: POI
Version: 3.17-FINAL
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 35959
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35959&action=edit
Example Excel file
I'm using Java 7 64-bit on Linux (Ubuntu 18.04 64-bit).
Running:
try {
File f = new File("DOBAVNICA_K8-5204_2018.xls");
HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(f));
System.out.println("workbook = " + workbook);
} catch (Exception e) {
e.printStackTrace();
}
produces error:
org.apache.poi.hssf.record.RecordInputStream$LeftoverDataException:
Initialisation of record 0x1D(SelectionRecord) left 1 bytes remaining still to
be read.
at
org.apache.poi.hssf.record.RecordInputStream.hasNextRecord(RecordInputStream.java:178)
at
org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:235)
at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:494)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:356)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:413)
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:394)
at com.kovi.poitest.Test.main(Test.java:15)
I have tried on every POI version from 3.9 till 3.17 and get the same error on
every version.
--
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]