Word and PDF export problems with scaffolds
I have a set of documents that I'm creating as Confluence pages with various forms of Scaffolds where users will be entering a bunch of information. These documents will sometimes be exported to word or pdf to send by mail, but the single page export functions have several issues that I am unable to resolve.
PDF export:
- Some pages give the following error when a {table-data} table contain zero rows:
caused by: java.lang.NullPointerException
at org.apache.fop.layoutmgr.table.RowPainter.addAreasAndFlushRow(RowPainter.java:153)
- Some pages give the following error no matter what I do:
caused by: java.lang.NullPointerException
at org.apache.fop.fo.flow.Table.endOfNode(Table.java:229)
- While other pages export perfectly despite containing the same macros.
I've checked all the code multiple times but cannot find any specific problem areas in the pages that give errors when exporting.
Word export:
- When exporting a page with Scaffolds to Word I consistently get the following errors in place of the stored values in scaffolds:
Error formatting macro: list-data: java.lang.NoClassDefFoundError: org/directwebremoting/WebContextFactory
Error formatting macro: list-option: java.lang.NoClassDefFoundError: org/directwebremoting/WebContextFactory
Error formatting macro: text-data: java.lang.NoClassDefFoundError: org/directwebremoting/WebContextFactory
Error formatting macro: eval-data: java.lang.NoClassDefFoundError: org/directwebremoting/WebContextFactory
- Also variable references in {eval-data} macros give the following:
Unknown macro: {variable}
PDF export:
- Some pages give the following error when a {table-data} table contain zero rows:
caused by: java.lang.NullPointerException
at org.apache.fop.layoutmgr.table.RowPainter.addAreasAndFlushRow(RowPainter.java:153)
- Some pages give the following error no matter what I do:
caused by: java.lang.NullPointerException
at org.apache.fop.fo.flow.Table.endOfNode(Table.java:229)
- While other pages export perfectly despite containing the same macros.
I've checked all the code multiple times but cannot find any specific problem areas in the pages that give errors when exporting.
Word export:
- When exporting a page with Scaffolds to Word I consistently get the following errors in place of the stored values in scaffolds:
Error formatting macro: list-data: java.lang.NoClassDefFoundError: org/directwebremoting/WebContextFactory
Error formatting macro: list-option: java.lang.NoClassDefFoundError: org/directwebremoting/WebContextFactory
Error formatting macro: text-data: java.lang.NoClassDefFoundError: org/directwebremoting/WebContextFactory
Error formatting macro: eval-data: java.lang.NoClassDefFoundError: org/directwebremoting/WebContextFactory
- Also variable references in {eval-data} macros give the following:
Unknown macro: {variable}
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
-
Inappropriate?There have been a couple of reports of issues when exporting pages with scaffolds on them. Could you create a bug report with as much detail as you can about what macros trigger the problem?
-
Inappropriate?Bug report submittet. I also uploaded a file with the entire source of one of the pages that are giving stacktraces on PDF-export.
http://greenhouse.customware.net/jira...
I’m thankful
Loading Profile...



EMPLOYEE