https://bz.apache.org/bugzilla/show_bug.cgi?id=57593
Bug ID: 57593
Summary: Unable to read an Excel file. After editing nothing
and resaving in the Office - no problem, the file is
readable by POI
Product: POI
Version: 3.11-FINAL
Hardware: PC
Status: NEW
Severity: critical
Priority: P5
Component: HSSF
Assignee: [email protected]
Reporter: [email protected]
java.lang.Class - java.lang.IllegalArgumentException: The supplied
POIFSFileSystem does not contain a BIFF8 'Workbook' entry. Is it really an
excel file?
at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getWorkbookDirEntryName(HSSFWorkbook.java:223)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:245)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:188)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:305)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:286)
at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:60)
I can't send the problematic file right now because it containts private
information and has a lot of stuff. After removal of a single byte (or not
editing at all) and saving - the problem is gone. I can speculate that the file
had encryption or disabled cells which were removed. So, something was not
cleared completely. After re-saving - the office fixes something automatically,
so the problem is automatically gone. But we need this to be fixed since users
may submit ANY file state and from the user's point of view the file is
completely normal and no way to distinguish the wrong file which causes the
crash from the good files.
--
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]