Bug 31879

Summary: java.io.IOException: Unable to read entire header; -1 bytes read; expected 512 bytes
Product: POI Reporter: RANJINI <ranjini_n>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED INVALID    
Severity: critical    
Priority: P3    
Version: 2.5-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Excel throwing the error

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.