Summary: | XSSFWorkbook#createCellStyle() fails with ArrayIndexOutOfBoundsException | ||
---|---|---|---|
Product: | POI | Reporter: | nestor.urquiza |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.8-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
5 files showing the issue
two screenshots showing how the second style of the merged sheet gets messed up |
Description
nestor.urquiza
2011-12-16 20:42:05 UTC
Are you able to unpack one of the problematic files (.xlsx files are a zip of xml files), and see if there's anything obviously different in the styles file between one that works and one that doesn't? For a problem file, does adding or removing styles in excel fix things? I confirmed the problem in trunk. The simplest failing test case is: XSSFWorkbook targetWorkbook = new XSSFWorkbook(new FileInputStream("balance.xlsx")); XSSFCellStyle style = targetWorkbook.createCellStyle(); Somehow appending a new cell style to balance.xlsx results in exception. Yegor Created attachment 28118 [details]
two screenshots showing how the second style of the merged sheet gets messed up
Hi Yegor,
First, Happy and healthy 2012!
Thanks for looking at this issue. I can confirm the exception is not longer generated however the style for the second document is not respected after the merge. If you run my JUnit test you can confirm so but in any case I am attaching the screenshots for you to have a quick look at what is currently happening.
Thanks!
-Nestor
|