Summary: | java.lang.IndexOutOfBoundsException during XSSF Workbook.cloneSheet() | ||
---|---|---|---|
Product: | POI | Reporter: | kiruba3441 <kirubakaran.d> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | abang878 |
Priority: | P2 | ||
Version: | 3.7-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: | xlsx File containing a background Image |
Could you try with 3.8 beta 3 and see if that helps? I tried it and it doesn't seem to help. |
Created attachment 27250 [details] 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)