Page 1 of 1

"Exception exporting package" in docx to xhtml conversion

PostPosted: Mon Dec 16, 2013 6:49 pm
by LaFolle
I am trying to convert a docx file to xhtml, but am getting this exception. Any idea how to resolve this?
Code: Select all
ERROR org.docx4j.convert.out.common.AbstractExporter .export line 78 - Exception exporting package
java.lang.NullPointerException
   at org.docx4j.openpackaging.parts.WordprocessingML.BinaryPart.getBuffer(BinaryPart.java:167)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.shallowCopyContent(PartialDeepCopy.java:230)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.copyPart(PartialDeepCopy.java:197)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyPart(PartialDeepCopy.java:170)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyRelationships(PartialDeepCopy.java:155)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.process(PartialDeepCopy.java:71)
   at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:72)
   at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:124)
   at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:51)
   at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:32)
   at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:60)
   at org.docx4j.Docx4J.toHTML(Docx4J.java:502)
   at DocxToXhtmlAndBack.main(DocxToXhtmlAndBack.java:93)
Exception in thread "main" org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package
   at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:79)
   at org.docx4j.Docx4J.toHTML(Docx4J.java:502)
   at DocxToXhtmlAndBack.main(DocxToXhtmlAndBack.java:93)
Caused by: java.lang.NullPointerException
   at org.docx4j.openpackaging.parts.WordprocessingML.BinaryPart.getBuffer(BinaryPart.java:167)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.shallowCopyContent(PartialDeepCopy.java:230)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.copyPart(PartialDeepCopy.java:197)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyPart(PartialDeepCopy.java:170)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.deepCopyRelationships(PartialDeepCopy.java:155)
   at org.docx4j.convert.out.common.preprocess.PartialDeepCopy.process(PartialDeepCopy.java:71)
   at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:72)
   at org.docx4j.convert.out.common.Preprocess.process(Preprocess.java:124)
   at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:51)
   at org.docx4j.convert.out.common.AbstractWmlExporter.preprocess(AbstractWmlExporter.java:32)
   at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:60)
   ... 2 more

Re: "Exception exporting package" in docx to xhtml conversio

PostPosted: Mon Dec 16, 2013 7:07 pm
by jason
Could you please attach a docx file exhibiting the issue, or email same to jason@plutext.org