https://issues.apache.org/bugzilla/show_bug.cgi?id=46269
Summary: XLS file not reading. Invalid header signature
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Created an attachment (id=22916)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22916)
The problematic file.
Java command executed:
java org.apache.poi.poifs.filesystem.POIFSFileSystem test.xls out.xls
While reading a Excel file, I'm getting the following exception:
Exception in thread "main" java.io.IOException: Invalid header signature; read
4503608217567241, expected -2226271756974174256
at
org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockReader.java:112)
at
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:151)
at
org.apache.poi.poifs.filesystem.POIFSFileSystem.main(POIFSFileSystem.java:415)
The test.xls file is attached. The file was received from a Govt organization
and there is no way to verify which version of M$ Excel they use. The file
opens fine in Excel and openOffice.
--
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]