Summary: | java.lang.IllegalArgumentException | ||
---|---|---|---|
Product: | POI | Reporter: | David Parsons <b2n2zjm> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | P3 | ||
Version: | 2.0-pre3 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: |
source file that caused error...also found that it is an unsupported data cell_type
the input excel file |
Description
David Parsons
2003-05-02 15:55:08 UTC
You need to attach a simple example workbook that exhibits this error. Created attachment 6238 [details]
source file that caused error...also found that it is an unsupported data cell_type
Created attachment 6337 [details]
the input excel file
I have this problem too,the error message is: Caused by: java.lang.IllegalArgumentException: Cannot store a duplicate value (" ŽŸ") in this Map at org.apache.poi.util.BinaryTree.insertValue(BinaryTree.java:1395) at org.apache.poi.util.BinaryTree.put(BinaryTree.java:1580) at org.apache.poi.hssf.record.SSTRecord.processString(SSTRecord.java:103 3) at org.apache.poi.hssf.record.SSTRecord.manufactureStrings(SSTRecord.jav a:960) at org.apache.poi.hssf.record.SSTRecord.fillFields(SSTRecord.java:818) at org.apache.poi.hssf.record.Record.fillFields(Record.java:142) at org.apache.poi.hssf.record.Record.<init>(Record.java:104) at org.apache.poi.hssf.record.SSTRecord.<init>(SSTRecord.java:161) ... 11 more Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException: Una ble to construct record instance, the following exception occured: null at org.apache.poi.hssf.record.RecordFactory.createRecord(RecordFactory.j ava:259) at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory. java:184) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1 40) at cn.com.asb.fsms.utility.xlsGenerator.FillTemplateforCity(xlsGenerator .java:189) at cn.com.asb.fsms.report.ReportGenerator.GenerateCityReport(ReportGener ator.java:463) at cn.com.asb.fsms.report.ReportGenerator.Generator(ReportGenerator.java :176) at cn.com.asb.fsms.report.ReportGenerator.main(ReportGenerator.java:305) Press any key to continue... This is a chinese Excel file,and the bookwork include 2 sheets,each sheet have a column filled "ŽŸ",and if I delete the columne "ŽŸ" in one sheet,it's ok! Is this still a problem in 2.0-pre2 Fixed in CVS. Testcase Added. Will go into 2.0RC1 |