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 49188] New: autoSizeColumn, ArrayOutOfBounds if more than Short.MAX_VAULE rows
Date Tue, 27 Apr 2010 07:04:06 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49188

           Summary: autoSizeColumn, ArrayOutOfBounds if more than
                    Short.MAX_VAULE rows
           Product: POI
           Version: 3.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: al@linova.de


Created a worksheet with more tham Short.MAX_VALUE rows and 3 columns.
Called HSSFSheet.autoSizeColumn on each of the three columns, which caused the
exception below. Auto sizing works when number of rows is lower than
Short.MAX_VALUE

java.lang.ArrayIndexOutOfBoundsException: -32735
    at java.util.ArrayList.get(Unknown Source)
    at
org.apache.poi.hssf.model.WorkbookRecordList.get(WorkbookRecordList.java:50)
    at org.apache.poi.hssf.model.Workbook.getExFormatAt(Workbook.java:787)
    at org.apache.poi.hssf.usermodel.HSSFCell.getCellStyle(HSSFCell.java:906)
    at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1727)
    at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1662)

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