Bug 31032 - Invalid header signature; read 3546922463590896708, expected
Summary: Invalid header signature; read 3546922463590896708, expected
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 1.5.1
Hardware: Other All
: P3 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-03 06:53 UTC by Satya
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments
Excel file to upload (10.98 KB, application/octet-stream)
2004-09-03 06:55 UTC, Satya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Satya 2004-09-03 06:53:48 UTC
I am using POI api to read the Excel files. I am using the POi version 1.5.1.
i am unable to read the excel file. it is giving the error as below. 

E:\jakarta_poi\supinfo>java  ExcelTest
Exception in thread "main" java.io.IOException: Invalid header signature; read 7
888090397404325948, expected -2226271756974174256
        at org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockRead
er.java:124)
        at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSyste
m.java:120)
        at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1
75)
        at ExcelTest.main(ExcelTest.java:26)
Comment 1 Satya 2004-09-03 06:55:11 UTC
Created attachment 12625 [details]
Excel file to upload
Comment 2 Michael Zalewski 2004-09-10 23:28:56 UTC
It's not an Excel file. It's a workbook saved as HTML.

If you open the attached file in Excel, then save it as a workbook 
(extension .xls), things will work much better.

POI does not support reading Excel files which have been saved in non-.xls 
formats.