Bug 44836 - "Unable to read entire block" IOException happens when reading the excel file which file size isn't the exact multiple of the 512 bytes
Summary: "Unable to read entire block" IOException happens when reading the excel file...
Status: RESOLVED WORKSFORME
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-FINAL
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 12:56 UTC by Min Li
Modified: 2008-04-18 03:20 UTC (History)
1 user (show)



Attachments
The svn diff for the fix (1.85 KB, patch)
2008-04-17 15:06 UTC, Min Li
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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