poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45639] New: ArrayIndexOutOfBoundsException in the HSSFSheet.groupColumn
Date Sun, 17 Aug 2008 11:08:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45639

           Summary: ArrayIndexOutOfBoundsException  in the
                    HSSFSheet.groupColumn
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: asharapov@tengry.com


This is the exception that occurs when i try to group columns on sheet:
java.lang.ArrayIndexOutOfBoundsException: -2
        at java.util.ArrayList.get(ArrayList.java:323)
        at
org.apache.poi.hssf.record.aggregates.ColumnInfoRecordsAggregate.getColInfo(ColumnInfoRecordsAggregate.java:151)
        at
org.apache.poi.hssf.record.aggregates.ColumnInfoRecordsAggregate.collapseColInfoRecords(ColumnInfoRecordsAggregate.java:448)
        at
org.apache.poi.hssf.record.aggregates.ColumnInfoRecordsAggregate.groupColumnRange(ColumnInfoRecordsAggregate.java:492)
        at org.apache.poi.hssf.model.Sheet.groupColumnRange(Sheet.java:1194)
        at
org.apache.poi.hssf.usermodel.HSSFSheet.groupColumn(HSSFSheet.java:1596)

example code:
        final HSSFWorkbook wb = new HSSFWorkbook();
        final HSSFSheet sheet = wb.createSheet("test");
        sheet.groupColumn((short)7, (short)9);
        sheet.groupColumn((short)4, (short)12);
        sheet.groupColumn((short)1, (short)15);

Tested on current poi version (poi-3.2-alpha1-20080817)


-- 
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message