DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40548>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40548 Summary: Exception in ExternSheetRecord while setting Repeating Rows and Columns Product: POI Version: 3.0-dev Platform: All OS/Version: other Status: NEW Severity: normal Priority: P2 Component: HSSF AssignedTo: poi-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Our application programmatically sets certain rows as header columns for printing purposes, and makes use of the setRepeatingRowsAndColumns() method of HSSFWorkbook to accomplish this. However, on certain spreadsheets, that method throws an exception similar to the following: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(Unknown Source) at org.apache.poi.hssf.record.ExternSheetRecord.getREFRecordAt (ExternSheetRecord.java:122) at org.apache.poi.hssf.model.Workbook.getSheetIndexFromExternSheetIndex (Workbook.java:1799) at org.apache.poi.hssf.usermodel.HSSFWorkbook.findExistingRowColHeaderNameRecordId x(HSSFWorkbook.java:730) at org.apache.poi.hssf.usermodel.HSSFWorkbook.findExistingRowColHeaderNameRecord (HSSFWorkbook.java:717) at org.apache.poi.hssf.usermodel.HSSFWorkbook.setRepeatingRowsAndColumns (HSSFWorkbook.java:650) at com.tcg.Bug6839TestHarness.main(Bug6839TestHarness.java:44) We *think* that this happens in spreadsheets with pre-existing print areas, but we're not sure. We have observed this behavior in both 2.5.1 final and the 3.0alpha2. Test case and example spreadsheet to come. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/