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

            Bug ID: 54400
           Summary: StackOverflowError formatting a cell value which
                    contains a formula
           Product: POI
           Version: 3.7
          Hardware: PC
                OS: Mac OS X 10.4
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSSF
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

A collection of Excel files trigger a StackOverflowException with both POI 3.7
and 3.9.

Attached is the first file where I have managed to track it down to the
problematic cell. There are two other files supposedly with the same issue.
This is all publicly-accessible data, as I understand it.

Minimal code required for reproduction:

    @Test
    public void test() throws Exception
    {
        File file = new File("z:\\Data\\swapgraph.xls");

        HSSFWorkbook workbook = new HSSFWorkbook(new POIFSFileSystem(new
FileInputStream(file)));
        HSSFSheet sheet = workbook.getSheetAt(25);
        HSSFRow row = sheet.getRow(5);
        HSSFCell cell = row.getCell(1);
        new HSSFDataFormatter().formatCellValue(cell, new
HSSFFormulaEvaluator(workbook));
    }

Stack trace I have pasted here: http://pastie.org/5659697

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