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

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2900178 ] New: CONFSERVER Bug Workflow v4 [ 2994810 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2795115 ] New: JAC Bug Workflow v3 [ 2900178 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2725324 ] New: JAC Bug Workflow v2 [ 2795115 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2388862 ] New: JAC Bug Workflow [ 2725324 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2265884 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2388862 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2209404 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2265884 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2194226 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2209404 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1936422 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2194226 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1735756 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1936422 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1693429 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1735756 ]

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

                Created:
                Updated:
                Resolved: