poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Axel Rose" <axel.roesl...@googlemail.com>
Subject ContinueRecord: Unexpected record type
Date Thu, 20 Nov 2008 15:24:50 GMT
I get the following error when reading certain XLS files with POI 3.2-FINAL
and POI 3.5 latest svn version

---
Exception in thread "main" java.lang.RuntimeException: Unexpected record
type (org.apache.poi.hssf.record.ContinueRecord)
        at
org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.<init>(RowRecordsAggregate.java:87)
        at org.apache.poi.hssf.model.Sheet.<init>(Sheet.java:197)
        at org.apache.poi.hssf.model.Sheet.createSheet(Sheet.java:159)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:286)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:200)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:182)
        at ExcelExtractor.openWorkbook(ExcelExtractor.java:529)
        at ExtractorTest.main(ExtractorTest.java:57)
---

#529 of ExcelExtractor: wb = new HSSFWorkbook(new POIFSFileSystem(inp));

This doesn't happen when using POI 3.0 though.

Has anybody an idea how to avoid this Exception?

Ideally I hope for a fix in the coming 3.5 release and perhaps some hints to
end users
how to avoid this situation.


Thanks for any help,
Axel.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message