com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'no title found' to the PDF document /opt/atlassian/Confluence/data/confluence-4.2.12/temp/pdfexport-20120810-100812-1802-17/ds-100812-1802-18.pdf

Atlassian JIRA | Alejandro Conde Carrillo | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Generating a space PDF export with an {{div}} tag closed in the same tag where it starts fails with the following message (see screenshot). {noformat}Failed during PDF export. Exception message - Exception thrown while rendering the page 'no title found' to the PDF document{noformat} You will also get the following warnings and error in the logs: {noformat} 2012-08-10 18:02:13,734 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/sh/src/shCore.js:32: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:13,770 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/sh/scripts/shBrushJava.js:50: TypeError: Cannot read property "Highlighter" from undefined (bundle://29.0:1/sh/scripts/shBrushJava.js#50) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: TypeError: Cannot read property "Highlighter" from undefined (bundle://29.0:1/sh/scripts/shBrushJava.js#50) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:13,770 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/template.html:2: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:15,325 ERROR [Long running task: PDF Space Export] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during PDF export -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'no title found' to the PDF document /opt/atlassian/Confluence/data/confluence-4.2.12/temp/pdfexport-20120810-100812-1802-17/ds-100812-1802-18.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:58) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:70) ... {noformat} +Repro steps:+ # Create a space with some content # Add the following PDF layout to the PDF Space Export Header/Footer: {code} <div /> {code} # Export the space as a PDF. +Workaround:+ Change your div to have a closing tag: {code}<div ... >...</div>{code}

    Atlassian JIRA | 5 years ago | Alex Conde [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'no title found' to the PDF document /opt/atlassian/Confluence/data/confluence-4.2.12/temp/pdfexport-20120810-100812-1802-17/ds-100812-1802-18.pdf
  2. 0

    Generating a space PDF export with an {{div}} tag closed in the same tag where it starts fails with the following message (see screenshot). {noformat}Failed during PDF export. Exception message - Exception thrown while rendering the page 'no title found' to the PDF document{noformat} You will also get the following warnings and error in the logs: {noformat} 2012-08-10 18:02:13,734 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/sh/src/shCore.js:32: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: ReferenceError: "XRegExp" is not defined. (bundle://29.0:1/sh/src/shCore.js#32) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:13,770 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/sh/scripts/shBrushJava.js:50: TypeError: Cannot read property "Highlighter" from undefined (bundle://29.0:1/sh/scripts/shBrushJava.js#50) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: TypeError: Cannot read property "Highlighter" from undefined (bundle://29.0:1/sh/scripts/shBrushJava.js#50) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:13,770 WARN [Long running task: PDF Space Export] [lobobrowser.html.domimpl.HTMLScriptElementImpl] processScript Javascript error at bundle://29.0:1/template.html:2: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2) -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf org.mozilla.javascript.EcmaError: TypeError: Cannot read property "config" from undefined (bundle://29.0:1/template.html#2) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219) ... 2012-08-10 18:02:15,325 ERROR [Long running task: PDF Space Export] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during PDF export -- url: /spaces/flyingpdf/doflyingpdf.action | userName: alex | referer: http://localhost:6429/spaces/flyingpdf/flyingpdf.action?key=ds | action: doflyingpdf com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'no title found' to the PDF document /opt/atlassian/Confluence/data/confluence-4.2.12/temp/pdfexport-20120810-100812-1802-17/ds-100812-1802-18.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:58) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:70) ... {noformat} +Repro steps:+ # Create a space with some content # Add the following PDF layout to the PDF Space Export Header/Footer: {code} <div /> {code} # Export the space as a PDF. +Workaround:+ Change your div to have a closing tag: {code}<div ... >...</div>{code}

    Atlassian JIRA | 5 years ago | Alejandro Conde Carrillo
    com.atlassian.confluence.importexport.ImportExportException: Exception thrown while rendering the page 'no title found' to the PDF document /opt/atlassian/Confluence/data/confluence-4.2.12/temp/pdfexport-20120810-100812-1802-17/ds-100812-1802-18.pdf

    Root Cause Analysis

    1. com.atlassian.confluence.importexport.ImportExportException

      Exception thrown while rendering the page 'no title found' to the PDF document /opt/atlassian/Confluence/data/confluence-4.2.12/temp/pdfexport-20120810-100812-1802-17/ds-100812-1802-18.pdf

      at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf()
    2. com.atlassian.confluence
      PdfExportLongRunningTask$1.doInTransactionWithoutResult
      1. com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:110)
      2. com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:58)
      3. com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:70)
      3 frames