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)
      

            [CONFSERVER-11184] Code macro breaks PDF export

              Unassigned Unassigned
              cltham Choy Li Tham [Atlassian]
              Affected customers:
              2 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: