| Summary: | ArrayIndexOutOfBoundsException when rendering chart in PDF | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Lukasz Pobereznik <lpobereznik> |
| Component: | BIRT | Assignee: | Birt-Chart-inbox <Birt-Chart-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Xiaoying Gu <bluesoldier> |
| Severity: | minor | ||
| Priority: | P3 | CC: | bluesoldier |
| Version: | 2.2.2 | ||
| Target Milestone: | 3.7.0 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | Obsolete | ||
Could you please provide the buildID of BIRT version that you are using? I can not reproduce this issue in the 2.6.1 release. Could you please try with the latest release or attach your report design for us to investigate? Build symbol is r22x_v20080226. We are using BIRT version 2.2.2 and migration to 2.6.1 is not an option at this time. Please try to upgrade to 2.6.1 version. 2.2.x stream is no longer under maintenance. |
When rendering a report in PDF that contains a chart with links (local bookmarks), following exception is being thrown: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 4 at org.eclipse.birt.report.engine.layout.pdf.PDFImageLM.getArea(PDFImageLM.java:531) at org.eclipse.birt.report.engine.layout.pdf.PDFImageLM.createImageMap(PDFImageLM.java:385) at org.eclipse.birt.report.engine.layout.pdf.PDFImageLM.processChartLegend(PDFImageLM.java:372) at org.eclipse.birt.report.engine.layout.pdf.PDFImageLM.init(PDFImageLM.java:345) at org.eclipse.birt.report.engine.layout.pdf.PDFImageLM.<init>(PDFImageLM.java:126) at org.eclipse.birt.report.engine.layout.pdf.PDFLayoutManagerFactory$ContentVisitor.visitImage(PDFLayoutManagerFactory.java:154) at org.eclipse.birt.report.engine.content.impl.ImageContent.accept(ImageContent.java:63) at org.eclipse.birt.report.engine.layout.pdf.PDFLayoutManagerFactory.createLayoutManager(PDFLayoutManagerFactory.java:71) at org.eclipse.birt.report.engine.layout.pdf.PDFLineAreaLM.handleChild(PDFLineAreaLM.java:167) at org.eclipse.birt.report.engine.layout.pdf.PDFLineAreaLM.traverseChildren(PDFLineAreaLM.java:150) at org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layoutChildren(PDFStackingLM.java:141) at org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layout(PDFAbstractLM.java:132) at org.eclipse.birt.report.engine.layout.pdf.PDFBlockContainerLM.traverseSingleChild(PDFBlockContainerLM.java:44) at org.eclipse.birt.report.engine.layout.pdf.PDFImageBlockContainerLM.traverseChildren(PDFImageBlockContainerLM.java:28) at org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layoutChildren(PDFStackingLM.java:141) at Workaround for that is a JavaScript code that will turn off interactivity when report is being generated in PDF: function beforeDrawSeries(series, isr, icsc) { if(getOutputFormat()=="pdf") { icsc.getChartInstance().getInteractivity().setEnable(false); } }