-
Bug
-
Resolution: Fixed
-
Low
-
2.7.2
This error occurs when exporting to PDF. The page contains the Code macro that has spaces between text and quote marks.
The following steps use to reproduce the problem:
- Create a page (named Page A)
- Paste the following Code macro in Page A:
{code} " Integer" {code}
- Try to export page A via Info > PDF.
You should be able to see the similar error exception in the stack trace:
Cause: com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF! at com.atlassian.confluence.importexport.impl.PdfExporter.foToPdf(PdfExporter.java:137) caused by: javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException: -1 at com.icl.saxon.IdentityTransformer.transform(IdentityTransformer.java:61) caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.get(ArrayList.java:323)
Confluence 3.0 includes a new PDF Export mechanism which does not have this problem.