We get the same error with the first try with our file and now we search about a workarrount for this bug. I check our version, it is the newest version from POI.
We have to import some files like this file into our database and we
hope POI can help us that we never have to make some CSV-files before we
can work with this data.
Iouri Michtchenko wrote:
>Could anybody test this file?
>When I do :
>
>HSSFWorkbook wb = new HSSFWorkbook(new FileInputStream("test.xls"));
>
>It throws an exception:
>
>net.sourceforge.poi.hssf.record.RecordFormatException: Unable to construct
>record instance
>net.sourceforge.poi.hssf.record.Record[]
>net.sourceforge.poi.hssf.record.RecordFactory.createRecord(short, short,
>byte[]) (RecordFactory.java:271)
>java.util.List
>net.sourceforge.poi.hssf.record.RecordFactory.createRecords(java.io.InputStr
>eam) (RecordFactory.java:202)
>void
>net.sourceforge.poi.hssf.usermodel.HSSFWorkbook.<init>(net.sourceforge.poi.p
>oifs.filesystem.POIFSFileSystem) (HSSFWorkbook.java:156)
>void
>net.sourceforge.poi.hssf.usermodel.HSSFWorkbook.<init>(java.io.InputStream)
>(HSSFWorkbook.java:191)
>
>Thanks.
>
--
Stefan Neudorfer
E-Mail: [EMAIL PROTECTED]
Tel.: 0049 89 688 00 622
Fax.: 0049 89 688 00 669
Firma:
Stefan Th. Neudorfer Software & Consulting GmbH
Klack-Redaktion
Turner Str. 64
81827 M�nchen
Germany
Web.: http://www.neudorfer.de
TV-Magazin: http://www.klack.com
POI-Test_simple.xls
Description: MS-Excel spreadsheet
