Bug 26609 - Failed to create workbook
Summary: Failed to create workbook
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-pre3
Hardware: PC All
: P3 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2004-02-02 17:48 UTC by Jun Zuo
Modified: 2005-03-20 17:06 UTC (History)
0 users

Very simple Excel file: Only one number in the first cell (5.50 KB, application/excel)
2004-02-02 17:51 UTC, Jun Zuo
5.0/95 Format (54.50 KB, application/octet-stream)
2004-02-02 20:44 UTC, Perry Tew
Windows 2002 format (66.00 KB, application/octet-stream)
2004-02-02 20:44 UTC, Perry Tew

Note You need to log in before you can comment on or make changes to this bug.
Description Jun Zuo 2004-02-02 17:48:10 UTC
When trying to read the attached Excel file, I got the following error:

java.io.FileNotFoundException: no such entry: "Workbook"
	at org.apache.poi.poifs.filesystem.DirectoryNode.getEntry
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
Comment 1 Jun Zuo 2004-02-02 17:51:08 UTC
Created attachment 10186 [details]
Very simple Excel file: Only one number in the first cell
Comment 2 Perry Tew 2004-02-02 20:44:14 UTC
Created attachment 10190 [details]
5.0/95 Format
Comment 3 Perry Tew 2004-02-02 20:44:46 UTC
Created attachment 10191 [details]
Windows 2002 format
Comment 4 Perry Tew 2004-02-02 20:45:33 UTC
I encountered this same error report when trying to process an Excel
spreadsheet, but it appears to be related to what version I save the document as.  
I'm using Microsoft Excel 2002 (10.4302.4219) SP-2 to create my documents.  If I
save the document in the default xls format it processes correctly.  However, if
I save the document in
Microsoft Excel 5.0/95 Workbook (*.xls) 
format, I receive the same error this bug details.   I will attach the two
versions I'm working with.  Please note that I only process the worksheet titles
'Calls' and ignore the others.
Comment 5 Perry Tew 2004-02-02 20:47:56 UTC
Ahhh.  I just saw the other bug report similar to this that mentions you don't
support pre-97 formats.  Fair enough.  I will adjust my application accordingly.
 Please ignore my posts.

-Oh yeah.  Thanks for everything.  The POI project is _excellent_.

Comment 6 Danny Mui 2004-02-03 00:17:48 UTC
User resolved issue.