Skip to main content
Skip table of contents

When Exporting a Panel Macro with a Wide Border, an Export Error is Produced

Symptom

When attempting to export a page that includes a Confluence Panel macro with a wide border, an export error is produced with the following log:

CODE
com.k15t.scroll.exporter.pipeline.ExportException: Failed to build and export document model for source com.k15t.scroll.exporter.pipeline.source.DefaultSource@76563640[id=328097,title=Panel border].
    at com.k15t.scroll.exporter.pipeline.output.ToWordDocumentAppender.apply(ToWordDocumentAppender.java:52)
   
 ***code abridged***
   
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: com.k15t.scroll.core.extension.exporter.ExporterException: com.k15t.scroll.words.messages.asposeexception
    at com.k15t.scroll.words.exporter.WordsExporter.export(WordsExporter.java:301)
    at com.k15t.scroll.exporter.pipeline.output.ToWordDocumentAppender.apply(ToWordDocumentAppender.java:50)
    ... 57 more
Caused by: java.lang.RuntimeException: Error writing to output stream
    at com.k15t.scroll.words.renderer.AbstractWordsRenderer.end(AbstractWordsRenderer.java:36)
    at com.k15t.scroll.words.exporter.WordsExporter.exportElementWithRenderer(WordsExporter.java:477)
    at com.k15t.scroll.words.exporter.WordsExporter.exportContent(WordsExporter.java:445)
    at com.k15t.scroll.words.exporter.WordsExporter.exportPage(WordsExporter.java:388)
    at com.k15t.scroll.words.exporter.WordsExporter.export(WordsExporter.java:297)
    ... 58 more
Caused by: com.k15t.scroll.core.extension.exporter.ExporterException: messages.asposeexception
    at com.k15t.scroll.words.DocumentBuilder.endCell(DocumentBuilder.java:1402)
    at com.k15t.scroll.words.DocumentBuilder.endCell(DocumentBuilder.java:1371)
    at com.k15t.scroll.words.renderer.GenericTableRenderer.writeEnd(GenericTableRenderer.java:109)
    at com.k15t.scroll.words.renderer.AbstractWordsRenderer.end(AbstractWordsRenderer.java:33)
    ... 62 more
Caused by: com.k15t.scroll.core.extension.exporter.ExporterException: com.k15t.scroll.words.messages.asposeexception
    at com.k15t.scroll.words.model.CellFormat.applyCellFormatting(CellFormat.java:85)
    at com.k15t.scroll.words.DocumentBuilder.endCell(DocumentBuilder.java:1400)
    ... 65 more
Caused by: java.lang.IllegalArgumentException: Parameter name: lineWidth
    at com.aspose.words.Border.zzZ(Unknown Source)
    at com.aspose.words.Border.setLineWidth(Unknown Source)
    at com.k15t.scroll.words.model.CellFormat.applyCellFormatting(CellFormat.java:53)
    ... 66 more

Cause

This is caused because it is possible to define a Confluence Panel macro with an unlimited border pixel width value and the library that we use to generate the Word file exports supports a maximum border pixel width value of 31.

Resolution

To resolve this issue, you can reduce the border pixel width for the Confluence Panel macro to 31 or less.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.