javax.xml.bind.JAXBException: namespacePrefixMapper is null
Posted: Tue Jul 23, 2019 6:54 am
Hi Jason,
After upgrading to the new version 8.1.1 we get this kind of error:
The full log (with Docx4j log level "WARN" can be found in the attachment.
Interestingly, this only happens when I generate documents in parallel (multi-threaded).
When generating a single document everything works fine.
We are using docx4j-JAXB-Internal-8.1.1.jar and Java runtime 1.8.171
Would be great if you could give us an idea how this can be fixed.
Thanks,
Klaus
After upgrading to the new version 8.1.1 we get this kind of error:
- Code: Select all
java.lang.RuntimeException: javax.xml.bind.JAXBException: namespacePrefixMapper is null
at org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:983) ~[docx4j-core-8.1.1.jar:?]
at org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:941) ~[docx4j-core-8.1.1.jar:?]
at org.docx4j.model.datastorage.OpenDoPEIntegrity.process(OpenDoPEIntegrity.java:140) ~[docx4j-core-8.1.1.jar:?]
at org.docx4j.model.datastorage.OpenDoPEIntegrity.process(OpenDoPEIntegrity.java:116) ~[docx4j-core-8.1.1.jar:?]
at com.arianim.swingworker.docx.DocxGenerator$1$1.run(DocxGenerator.java:257) [bin/:?]
The full log (with Docx4j log level "WARN" can be found in the attachment.
Interestingly, this only happens when I generate documents in parallel (multi-threaded).
When generating a single document everything works fine.
We are using docx4j-JAXB-Internal-8.1.1.jar and Java runtime 1.8.171
Would be great if you could give us an idea how this can be fixed.
Thanks,
Klaus