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}
 
indifferent I’m frustrated
Inappropriate?
1 person has this problem

User_default_medium