poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47034] New: RecordFormatException when open an Excel file
Date Wed, 15 Apr 2009 10:02:06 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47034

           Summary: RecordFormatException when open an Excel file
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: matthew.knl@gmail.com


Created an attachment (id=23494)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23494)
problem.xls

Please check the attached Excel file, it throws "RecordFormatException: Unable
to construct record instance" when open it by following codes.
--
FileInputStream is = new FileInputStream("problem.xls")
POIFSFileSystem poifs = new POIFSFileSystem(is);
return new HSSFWorkbook(poifs);
--
org.apache.poi.hssf.record.RecordFormatException: Unable to construct record
instance
    at
org.apache.poi.hssf.record.RecordFactory$ReflectionRecordCreator.create(RecordFactory.java:71)
    at
org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:254)
    at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:373)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:277)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:202)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:184)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message