Bug 31879 - java.io.IOException: Unable to read entire header; -1 bytes read; expected 512 bytes
Summary: java.io.IOException: Unable to read entire header; -1 bytes read; expected 51...
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.5-FINAL
Hardware: PC All
: P3 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-25 11:07 UTC by RANJINI
Modified: 2004-11-18 07:13 UTC (History)
0 users



Attachments
Excel throwing the error (48.50 KB, application/octet-stream)
2004-10-25 11:08 UTC, RANJINI
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RANJINI 2004-10-25 11:07:38 UTC
Hi,
    I am getting an invalid header error while trying to read from an excel 
file. 
The exception is:
java.io.IOException: Unable to read entire header; -1 bytes read; expected 512 
bytes
	at org.apache.poi.poifs.storage.HeaderBlockReader.<init>
(HeaderBlockReader.java:78)
	at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>
(POIFSFileSystem.java:83)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:210)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:191)
Comment 1 RANJINI 2004-10-25 11:08:13 UTC
Created attachment 13213 [details]
Excel throwing the error
Comment 2 Avik Sengupta 2004-11-18 16:13:41 UTC
File opens fine in POI. Please check the stream that you are passing in to
HSSFWorkbook.