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

           Summary: java.lang.ClassCastException in the HSSFSheet.addRow
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


This is the exception that occurs when I try to add row on sheet after
sheet.groupRow(...) method :
java.lang.ClassCastException:
org.apache.poi.hssf.record.aggregates.ColumnInfoRecordsAggregate
        at org.apache.poi.hssf.model.Sheet.addRow(Sheet.java:769)
        at org.apache.poi.hssf.usermodel.HSSFSheet.addRow(HSSFSheet.java:298)
        at
org.apache.poi.hssf.usermodel.HSSFSheet.createRow(HSSFSheet.java:201)

example code: 
        final HSSFWorkbook wb = new HSSFWorkbook();
        final HSSFSheet sheet = wb.createSheet("test");
        sheet.createRow(0);
        sheet.createRow(1);
        sheet.groupRow(0,1);
        sheet.createRow(2);

Tested on current poi version (poi-3.2-alpha1-20080817)
Note: in earlier builds (checked on poi-3.2-alpha1-20080716) this bug wasn't
occurs.


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