Bug 26609

Summary: Failed to create workbook
Product: POI Reporter: Jun Zuo <jun.zuo>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: P3    
Version: 2.0-pre3   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Very simple Excel file: Only one number in the first cell
5.0/95 Format
Windows 2002 format

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.