-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Affects Version/s: 2.10.3
-
Component/s: Page - Export / Import
Confluence produces a stacktrace error com.atlassian.confluence.importexport.ImportExportException when we display a big png dimension image with align parameter. In order to reproduce the problem, please go through the following steps:
- Create a page containing the following:
h1. !RAP-Configuration-ERM.png|align=center!
- Save it
- Export the page to PDF.
If you, either remove align=center or h1, the export function will be working fine. The following is the stacktrace that happens after exporting the page to PDF.
com.atlassian.confluence.importexport.ImportExportException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'exportWikiToXslFo' in class com.atlassian.confluence.importexport.impl.WikiExporter threw exception com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database' @ com/atlassian/confluence/pages/Page.pdfexport.vm[20,37]
at com.atlassian.confluence.importexport.impl.PdfExporter.generateXslFo(PdfExporter.java:165)
caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'exportWikiToXslFo' in class com.atlassian.confluence.importexport.impl.WikiExporter threw exception com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database' @ com/atlassian/confluence/pages/Page.pdfexport.vm[20,37]
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
caused by: com.atlassian.confluence.renderer.WikiRenderException: Error while generating XSL-FO for 'EAIPROJECTS:Configuration Database'
at com.atlassian.confluence.importexport.impl.WikiExporter.exportWikiToXslFo(WikiExporter.java:106)
caused by: com.atlassian.confluence.renderer.WikiRenderException: Can not transform XHTML to XSL-FO due to an error in the following XHTML null
at com.atlassian.confluence.importexport.impl.WikiExporter.convertXHtmlToXslFo(WikiExporter.java:205)
caused by: java.lang.NullPointerException
at org.dom4j.io.DOMReader.read(DOMReader.java:86)
Please note that I have tried the problem using images which type png, jpeg and bmp. Using those types, the problem are reproducible.