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

           Summary: HSSFSheet - RuntimeException: Unexpected missing row
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


This exception is thrown in HSSFSheet when dealing with some spreadsheets:

Exception caught
java.lang.RuntimeException: Unexpected missing row when some rows already
present
    at
org.apache.poi.hssf.usermodel.HSSFSheet.setPropertiesFromSheet(HSSFSheet.java:171)
    at org.apache.poi.hssf.usermodel.HSSFSheet.<init>(HSSFSheet.java:118)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:289)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:202)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:184)

Assumptions:
Relates to bug 41187
Row is null - correct
rowRecordsAlreadyPresent = true

At this point in time _rows contains:
[ROW]
    .rownumber      = 0
    .firstcol       = 0x0000
    .lastcol        = 0x0000
    .height         = 0x0000
    .optimize       = 0x0000
    .reserved       = 0x0000
    .optionflags    = 0x0160
        .outlinelvl = 0
        .colapsed   = false
        .zeroheight = true
        .badfontheig= true
        .formatted  = false
    .xfindex        = f
[/ROW]

I can't see anything out of the ordinary with the spreadsheet, if I comment our
the 41887 workaround (starting on line 170) that throws a runtime exception the
spreadsheet is output sucessfully, starting as follows:

SP041808
effective 04/18/08...

Please let me know if you need any more info.

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