Bug 26609 - Failed to create workbook
Summary: Failed to create workbook
Status: RESOLVED INVALID
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
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-02 17:48 UTC by Jun Zuo
Modified: 2005-03-20 17:06 UTC (History)
0 users



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

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
(DirectoryNode.java:282)
	at 
org.apache.poi.poifs.filesystem.POIFSFileSystem.createDocumentInputStream
(POIFSFileSystem.java:356)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:139)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
(HSSFWorkbook.java:175)
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.