https://issues.apache.org/bugzilla/show_bug.cgi?id=51534

             Bug #: 51534
           Summary: [POI 3.8 beta 3]      Exception in thread "main"
                    java.lang.ExceptionInInitializerError
           Product: POI
           Version: 3.8-dev
          Platform: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 27302
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27302
This is my test data.

Error occurs when I deal excel 2003 files with POI 3.8 beta 3.
(btw: the file [ExceptionInInitializerError_Testdata.xls] is created by Ms
Office 2003 directly.
However, when I tried to open [ExceptionInInitializerError_Testdata.xls] and
save it as another file, the bellow exception will not be throwed.
Thanks! ^-^

The exception is as bellow:
============================================================================
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.apache.poi.ss.formula.ptg.Ptg.createClassifiedPtg(Ptg.java:104)
    at org.apache.poi.ss.formula.ptg.Ptg.createPtg(Ptg.java:85)
    at org.apache.poi.ss.formula.ptg.Ptg.readTokens(Ptg.java:56)
    at org.apache.poi.ss.formula.Formula.getTokens(Formula.java:82)
    at
org.apache.poi.hssf.record.FormulaRecord.getParsedExpression(FormulaRecord.java:311)
    at
org.apache.poi.hssf.record.aggregates.FormulaRecordAggregate.handleMissingSharedFormulaRecord(FormulaRecordAggregate.java:95)
    at
org.apache.poi.hssf.record.aggregates.FormulaRecordAggregate.<init>(FormulaRecordAggregate.java:75)
    at
org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate.construct(ValueRecordsAggregate.java:182)
    at
org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.<init>(RowRecordsAggregate.java:109)
    at org.apache.poi.hssf.model.InternalSheet.<init>(InternalSheet.java:207)
    at
org.apache.poi.hssf.model.InternalSheet.createSheet(InternalSheet.java:162)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:309)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:260)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:204)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:340)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:321)
    at
com.infobases.eltadoc2text.ReadFromFile.readTextFromExcelAndWriteToDB(ReadFromFile.java:128)
    at com.infobases.eltadoc2text.Doc2text.excel2Text(Doc2text.java:336)
    at com.infobases.eltadoc2text.Doc2text.Test_Dox(Doc2text.java:304)
    at com.infobases.eltadoc2text.Doc2text.main(Doc2text.java:63)
Caused by: java.lang.RuntimeException: resource 'functionMetadata.txt' not
found
    at
org.apache.poi.ss.formula.function.FunctionMetadataReader.createRegistry(FunctionMetadataReader.java:58)
    at
org.apache.poi.ss.formula.function.FunctionMetadataRegistry.getInstance(FunctionMetadataRegistry.java:46)
    at
org.apache.poi.ss.formula.function.FunctionMetadataRegistry.lookupIndexByName(FunctionMetadataRegistry.java:75)
    at
org.apache.poi.ss.formula.ptg.AbstractFunctionPtg.lookupIndex(AbstractFunctionPtg.java:144)
    at org.apache.poi.ss.formula.ptg.FuncVarPtg.create(FuncVarPtg.java:52)
    at org.apache.poi.ss.formula.ptg.FuncVarPtg.<clinit>(FuncVarPtg.java:35)
    ... 20 more

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to