HTML 中間言語を PDF に変換中に、PDF へのスペースのエクスポートが失敗する

プラットフォームについて: Cloud と Data Center - この記事は クラウド プラットフォームとデータセンター プラットフォームの両方に等しく当てはまります。

Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

要約

問題

When exporting a space to PDF the export progress stops and fails during {{Begin conversion of intermediate HTML to PDF}} of the export process. The following error will be in the UI:

Failed during PDF export. Exception message - Exception while rendering the PDF document <confluence_home>/temp/pdfexport-20161225-251216-1159-11/TEST-251216-1159-12.pdf

The following appears also in the atlassian-confluence.log file. Specifically the stacktrace below the Caused by referring tot he xhtml render issues.

2016-11-22 11:48:10,688 ERROR [Long running task: PDF Space Export] [core.task.longrunning.AbstractLongRunningTask] doInTransactionWithoutResult Error during PDF export -- referer: http://localhost:8599/conf/spaces/flyingpdf/flyingpdf.action?key=TEST | url: /conf/spaces/flyingpdf/doflyingpdf.action | userName: admin | action: doflyingpdf com.atlassian.confluence.importexport.ImportExportException: Exception while rendering the PDF document /Users/admin/atl/confluence/599/home/temp/pdfexport-20161122-221116-1147-11/TEST-221116-1147-12.pdf at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:102) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerPdfExporterService.createPdfForSpace(FlyingSaucerPdfExporterService.java:73) at com.atlassian.confluence.extra.flyingpdf.PdfExportLongRunningTask$1.doInTransactionWithoutResult(PdfExportLongRunningTask.java:77) [...] Caused by: java.lang.NullPointerException at org.xhtmlrenderer.layout.Layer.paint(Layer.java:365) at org.xhtmlrenderer.layout.Layer.paintLayers(Layer.java:166) at org.xhtmlrenderer.layout.Layer.paint(Layer.java:353) at org.xhtmlrenderer.pdf.ITextRenderer.paintPage(ITextRenderer.java:505) at org.xhtmlrenderer.pdf.ITextRenderer.writePageByPage(ITextRenderer.java:302) at org.xhtmlrenderer.pdf.ITextRenderer.layoutAndPaint(ITextRenderer.java:329) at com.atlassian.confluence.extra.flyingpdf.FlyingSaucerXmlToPdfConverter.convertXhtmlToPdf(FlyingSaucerXmlToPdfConverter.java:89) ... 12 more

診断

環境

  1. The HTML Macro

原因

The XHTML renderer is experiencing problems with HTML somewhere in the space and is unable to export it.

ソリューション

回避策

  1. Disable the HTML Macro to successfully export the content

  2. Or remove the HTML content until you're able to find the offending content, however there could be multiple pieces of content causing issues

更新日時: September 26, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。