(The open source Java library for manipulating docx files)
by LaFolle » Mon Dec 16, 2013 6:49 pm
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
-
LaFolle
-
- Posts: 1
- Joined: Mon Dec 16, 2013 6:20 pm
by jason » Mon Dec 16, 2013 7:07 pm
Could you please attach a docx file exhibiting the issue, or email same to
jason@plutext.org
-
jason
-
- Posts: 4014
- Joined: Wed Mar 19, 2008 11:47 pm
Return to docx4j
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 145 guests