Bug 43299 - Unable to construct record instance
Summary: Unable to construct record instance
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-dev
Hardware: Other Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Keywords: JDK1.4
Depends on:
Reported: 2007-09-03 19:50 UTC by Huang Weiping
Modified: 2009-02-18 12:04 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Huang Weiping 2007-09-03 19:50:50 UTC
org.apache.poi.hssf.record.RecordFormatException: Unable to construct record 
	at org.apache.poi.hssf.record.RecordFactory.createRecord
	at org.apache.poi.hssf.record.RecordFactory.createRecords
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>
	at com.mdcl.fmcc.cron.ReadExcel.getSheetList(ReadExcel.java:67)
	at com.mdcl.fmcc.cron.ReadExcel.main(ReadExcel.java:53)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at org.apache.poi.hssf.record.RecordFactory.createRecord
	... 5 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
	at org.apache.poi.hssf.record.NameRecord.fillFields(NameRecord.java:740)
	at org.apache.poi.hssf.record.Record.<init>(Record.java:56)
	at org.apache.poi.hssf.record.NameRecord.<init>(NameRecord.java:143)
	... 10 more
Comment 1 Nick Burch 2008-01-08 09:31:32 UTC
Is this problem still occuring with a svn checkout of poi?

If so, please attach the problem excel file
Comment 2 David Fisher 2009-02-18 12:04:50 UTC
There has been quite a bit of work with the latest POI-3.5beta5.

You should try it to see if it solves this formula ptg problem.

Please let us know.

Without useful information for over a year, I am resolving this as "INVALID" - admittedly arbitrary as it may more properly be "FIXED"