https://bz.apache.org/bugzilla/show_bug.cgi?id=60237

            Bug ID: 60237
           Summary: AbstractMethodError when calling
                    XSSFFormulaEvaluator.evaluateAllFormulaCells(XSSFWorkb
                    ook wb)
           Product: POI
           Version: 3.15-FINAL
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [email protected]
          Reporter: [email protected]

The evaluation of all formula cells in a XSSFWorkbook fails due to an
AbstractMethodError. It was working fine in previous versions.

java.lang.AbstractMethodError:
org.apache.poi.xssf.usermodel.XSSFCell.getCellTypeEnum()Lorg/apache/poi/ss/usermodel/CellType;
    at
org.apache.poi.ss.formula.BaseFormulaEvaluator.evaluateAllFormulaCells(BaseFormulaEvaluator.java:267)
    at
org.apache.poi.ss.formula.BaseFormulaEvaluator.evaluateAllFormulaCells(BaseFormulaEvaluator.java:259)
    at
org.apache.poi.hssf.usermodel.HSSFFormulaEvaluator.evaluateAllFormulaCells(HSSFFormulaEvaluator.java:176)
    at
org.apache.poi.xssf.usermodel.XSSFFormulaEvaluator.evaluateAllFormulaCells(XSSFFormulaEvaluator.java:91)

The culprit seems to be this statement: "c.getCellTypeEnum()".

My workaround is to call "workbook.setForceFormulaRecalculation(true);"
instead, which is working fine for Microsoft Office but fails for Libre Office
and makes opening the worksheet a little bit slower.

-- 
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