Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-11184

Code macro breaks PDF export

    XMLWordPrintable

    Details

    • Internal Complexity:
      4
    • Internal Value:
      2

      Description

      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:

      1. Create a page (named Page A)
      2. Paste the following Code macro in Page A:
        {code}
        "     Integer"
        {code}
        
      3. 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)
      

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Last commented:
                9 years, 10 weeks ago