Bug 48885 - Error while reading Excel using POI in Linux
Summary: Error while reading Excel using POI in Linux
Status: RESOLVED LATER
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-dev
Hardware: Other Linux
: P2 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-10 10:37 UTC by Sagar
Modified: 2010-03-10 10:42 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sagar 2010-03-10 10:37:04 UTC
Hi All,

I am using jakarta-poi-1.9.0-dev-20021025.jar for reading Excel file. 

I have an application in which Excel file stored in FTP server and my application getting an Excel File Input Stream using FTPClient(org.apache.commons.net.ftp.FTPClient) and I am passing this Input Stream to the constructor of HSSFWorkbook.
But in the constructor I am getting following error,

java.io.IOException: Unable to read entire block; 220 bytes read; expected 512 bytes
at org.apache.poi.poifs.storage.RawDataBlock.<init>(RawDataBlock.java:98)
at org.apache.poi.poifs.storage.RawDataBlockList.<init>(RawDataBlockList.java:88)
at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:123)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:228)
at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:209) 

I am having following environment detail,
Debian Linux, Dell PowerEdge 2850 server, FTP server is vsftpd, Tomcat 5.5

While same code is running on Windows without any error.

Can anybody please find any solution for this problem.
Comment 1 Nick Burch 2010-03-10 10:42:23 UTC
Try with POI 3.6, or at least something from the last year or so.... The version of POI you're using is almost a decade old now!