Return-Path: Delivered-To: apmail-jakarta-poi-dev-archive@www.apache.org Received: (qmail 99494 invoked from network); 19 Sep 2006 16:54:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 16:54:36 -0000 Received: (qmail 53076 invoked by uid 500); 19 Sep 2006 16:54:35 -0000 Delivered-To: apmail-jakarta-poi-dev-archive@jakarta.apache.org Received: (qmail 53060 invoked by uid 500); 19 Sep 2006 16:54:35 -0000 Mailing-List: contact poi-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "POI Developers List" Reply-To: "POI Developers List" Delivered-To: mailing list poi-dev@jakarta.apache.org Received: (qmail 53049 invoked by uid 99); 19 Sep 2006 16:54:34 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 09:54:34 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from ([209.237.227.198:59798] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 68/24-28275-AC020154 for ; Tue, 19 Sep 2006 09:54:34 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id DC451410066; Tue, 19 Sep 2006 16:50:58 +0000 (GMT) From: bugzilla@apache.org To: poi-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 40548] New: - Exception in ExternSheetRecord while setting Repeating Rows and Columns Message-ID: X-Bugzilla-Reason: AssignedTo Date: Tue, 19 Sep 2006 16:50:58 +0000 (GMT) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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: rich.renomeron@tcg.com 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: poi-dev-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/