https://issues.apache.org/bugzilla/show_bug.cgi?id=51470
Bug #: 51470
Summary: java.lang.IndexOutOfBoundsException during XSSF
Workbook.cloneSheet()
Product: POI
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Created attachment 27250
--> https://issues.apache.org/bugzilla/attachment.cgi?id=27250
xlsx File containing a background Image
The XSSF workbook clonesheet throws a Indexoutofbounds exception error, i see
that it has been fixed for the HSSFWorkbook, but XSSFWorkbook throws an error.
The error occurs only when the xlsx file has a background image.
code
/***********************************************************/
XSSFWorkbook workbook = new XSSFWorkbook();
template = "C:/work/Book1.xlsx";
if (template != null) {
InputStream in = new FileInputStream(template);
workbook = new XSSFWorkbook(in);
}
workbook.cloneSheet(0);
/***********************************************************/
Exception in thread "main" java.lang.IndexOutOfBoundsException
at
org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTWorksheetImpl.getColsArray(Unknown
Source)
--
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]