You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Vincent Rixhon <vi...@nrb.be> on 2004/12/17 15:58:43 UTC

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.java: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


Re: POI HSSF - RecordFormatException with poi-2.5.1-final-20040804

Posted by Vincent Rixhon <vi...@nrb.be>.

Vincent Rixhon wrote:

> 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.java: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


Re: POI HSSF - RecordFormatException with poi-2.5.1-final-20040804

Posted by Hotmail <pe...@hotmail.com>.
Hi,

I am using POI 2.5.1 on Redhat 9.0.

I tried your code snippet. It runs successfully.


rgds,


----- Original Message -----
From: "KHZ (SAW)" <ka...@sawag.com>
To: "'POI Users List'" <po...@jakarta.apache.org>
Sent: Friday, December 17, 2004 11:06 PM
Subject: AW: POI HSSF - RecordFormatException with poi-2.5.1-final-20040804


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


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


Ms Word SDK

Posted by Jonathan Wright <jo...@aboutit.co.nz>.
Hi,

This isn't directly linked to POI, although I am using parts of POI for this
project. I'm looking into writing some native code to utilize Microsoft's
Word SDK. Has anyone gone down this path for accessing word documents? Is it
in fact possible? Any thoughts/comments, as always, would be greatly
appreciated.

Regards,

Jonathan Wright, CIT Ltd Auckland.




---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


AW: POI HSSF - RecordFormatException with poi-2.5.1-final-20040804

Posted by "KHZ (SAW)" <ka...@sawag.com>.
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