poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KHZ (SAW)" <karl-heinz.zenge...@sawag.com>
Subject AW: POI HSSF - RecordFormatException with poi-2.5.1-final-20040804
Date Fri, 17 Dec 2004 15:06:46 GMT
Hi Vincent.

POI 2.5 e.g. had problems with lists whereas POI 2.0 didn't have it. I
don't know whether such things were removed in version 2.5.1.

Regards,	Karl-Heinz.


-----Urspr√ľngliche Nachricht-----
Von: Vincent Rixhon [mailto:vincent.rixhon@nrb.be] 
Gesendet: Freitag, 17. Dezember 2004 15:59
An: poi-user@jakarta.apache.org
Betreff: POI HSSF - RecordFormatException with poi-2.5.1-final-20040804

Hi,

I'm using "poi-2.5.1-final-20040804" and I try to read an Excel file
with POI HSSF .
I have an exception when I use "HSSFWorkbook".

Here is my code:

try {
final FileInputStream input = new FileInputStream(argFile);
final POIFSFileSystem fs = new POIFSFileSystem(input);
final HSSFWorkbook wb = new HSSFWorkbook(fs);
...
} catch(final Exception e) {
   logging exceptions
}

Here is the exception:

org.apache.poi.hssf.record.RecordFormatException: Unable to construct
record instance, the following exception occured: null
 at
org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.java
:237)

 at
org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.jav
a:160)

 at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:163)

 at
org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:210)

...

That works with "poi-2.0-pre1-20030517"...
Is it a bug in the version "2.5.1-final"?
I would like to know if wether a correction is avalaible or a newer
version of the jar format will be avalaible soon?

Thanks in advance
Vincent


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




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


Mime
View raw message