Bug 44836

Summary: "Unable to read entire block" IOException happens when reading the excel file which file size isn't the exact multiple of the 512 bytes
Product: POI Reporter: Min Li <limin9>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED WORKSFORME    
Severity: normal CC: limin9
Priority: P2    
Version: 3.0-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: The svn diff for the fix

Description Min Li 2008-04-17 12:56:09 UTC
We get IOException when parsing a customer's excel file which can be opened by excel and open office. The error message is "Unable to read entire block; 250 bytes read before EOF; expected 512 bytes".
Comment 1 Min Li 2008-04-17 15:06:19 UTC
Created attachment 21827 [details]
The svn diff for the fix

Change the RawDataBlockList.java and RawDataBlock.java files to allow reading the block less than 512 bytes.
Comment 2 Nick Burch 2008-04-18 03:20:01 UTC
Try with a recent svn build - this is now only a warning