PDF stacktrace error:
- Code: Select all
ERROR: [http-8600-Processor25] org.kache.ConvertToPDF.process - FOP issues
org.docx4j.openpackaging.exceptions.Docx4JException: FOP issues
at org.docx4j.convert.out.pdf.viaXSLFO.Conversion.output(Conversion.java:355)
at org.kache.ConvertToPDF.process(ConvertToPDF.java:57)
[...]
Caused by: javax.xml.transform.TransformerException: Unknown error in XPath
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1212)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:479)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1118)
at org.docx4j.XmlUtils.transform(XmlUtils.java:748)
at org.docx4j.XmlUtils.transform(XmlUtils.java:672)
at org.docx4j.convert.out.pdf.viaXSLFO.Conversion.output(Conversion.java:334)
... 34 more
Caused by: javax.xml.transform.TransformerException: Unknown error in XPath
at org.apache.xpath.XPath.execute(XPath.java:292)
at org.apache.xalan.templates.AVTPartXPath.evaluate(AVTPartXPath.java:157)
at org.apache.xalan.templates.AVT.evaluate(AVT.java:523)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:722)
at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189)
... 39 more
Caused by: java.lang.NullPointerException
at org.apache.xpath.VariableStack.getVariable(VariableStack.java:433)
at org.apache.xpath.XPathContext.getVariable(XPathContext.java:254)
at org.apache.xpath.operations.Variable.execute(Variable.java:110)
at org.apache.xpath.XPath.execute(XPath.java:269)
... 53 more
HTML stacktrace error:
- Code: Select all
javax.xml.transform.TransformerException: java.lang.NullPointerException
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1212)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:479)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1118)
at org.docx4j.XmlUtils.transform(XmlUtils.java:748)
at org.docx4j.XmlUtils.transform(XmlUtils.java:672)
at org.docx4j.convert.out.html.HtmlExporterNG.html(HtmlExporterNG.java:242)
at org.docx4j.convert.out.html.HtmlExporterNG.html(HtmlExporterNG.java:179)
at org.docx4j.convert.out.html.HtmlExporterNG.html(HtmlExporterNG.java:163)
at org.kache.ConvertToHTML.process(ConvertToHTML.java:31)
Caused by: java.lang.NullPointerException
at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:164)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.transformer.TransformerImpl.transformToString(TransformerImpl.java:1873)
at org.apache.xalan.templates.ElemComment.execute(ElemComment.java:130)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189)
... 41 more
---------
java.lang.NullPointerException
at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:164)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.transformer.TransformerImpl.transformToString(TransformerImpl.java:1873)
at org.apache.xalan.templates.ElemComment.execute(ElemComment.java:130)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495)
at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:479)
at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1118)
at org.docx4j.XmlUtils.transform(XmlUtils.java:748)
at org.docx4j.XmlUtils.transform(XmlUtils.java:672)
at org.docx4j.convert.out.html.HtmlExporterNG.html(HtmlExporterNG.java:242)
at org.docx4j.convert.out.html.HtmlExporterNG.html(HtmlExporterNG.java:179)
at org.docx4j.convert.out.html.HtmlExporterNG.html(HtmlExporterNG.java:163)
[...]
The thing is that I got this error in a desktop PC with doc4j working in a tomcat instalation. But if I try to convert the docx file in my notebook (where I'm developing), I get no error. So I suppose the error is in my webapp's configuration.
I've tried docx4j-nightly-20101102.jar, but now I'm using docx4j-2.6.0.jar. BTW, which is newer?