Summary: | RecordFormatException: java.lang.UnsupportedOperationException: 60 (96) | ||
---|---|---|---|
Product: | POI | Reporter: | juergen <richts> |
Component: | HSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 3.0-dev | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
Attachments: | the excel file i use to reproduce the exception. |
Description
juergen
2005-11-24 15:29:07 UTC
Created attachment 17034 [details]
the excel file i use to reproduce the exception.
I'm using the cvs version now, and changed Ptg.java, line around 190 to: case MemErrPtg.sid : // 0x27 These 3 values case MemErrPtg.sid+0x20 : // 0x47 documented in case MemErrPtg.sid+0x40 : // 0x67 openOffice.org doc. case 0x60 : retval = new MemErrPtg(in); break; i don't know, what this means, but now i can read my excel file. Fixed! Error caused by ArrayPtgs not being implemented. They now are! Fix available in SVN. Jason I am trying to read a excel which contains two drop down lists. I get the following error. Exception in thread "main" org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance at org.apache.poi.hssf.record.RecordFactory.createRecord (RecordFactory.java:191) at org.apache.poi.hssf.record.RecordFactory.createRecords (RecordFactory.java:115) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:205) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:257) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:238) at excelFileReader.ParseExcel.main(ParseExcel.java:17) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.poi.hssf.record.RecordFactory.createRecord (RecordFactory.java:179) ... 5 more Caused by: org.apache.poi.hssf.record.RecordFormatException: java.lang.UnsupportedOperationException: Unknown Ptg in Formula: 0x0 (0) at org.apache.poi.hssf.record.FormulaRecord.fillFields (FormulaRecord.java:109) at org.apache.poi.hssf.record.Record.<init>(Record.java:56) at org.apache.poi.hssf.record.FormulaRecord.<init> (FormulaRecord.java:89) ... 10 more Caused by: java.lang.UnsupportedOperationException: Unknown Ptg in Formula: 0x0 (0) at org.apache.poi.hssf.record.formula.Ptg.createPtg(Ptg.java:357) at org.apache.poi.hssf.record.formula.Ptg.createParsedExpressionTokens (Ptg.java:98) at org.apache.poi.hssf.record.FormulaRecord.fillFields (FormulaRecord.java:107) ... 12 more Original fix was in svn r370987. Comment #4 seems to refer to a different problem. Without an example file it is difficult to be sure if it has been fixed, but there has been much work with formulas since version 3.0. If your workbook still fails to read with POI 3.5-beta4, please upload it to a new bugzilla entry. |