Having resolved my unexpected element problem (http://dev.plutext.org/forums/viewtopic.php?f=6&t=490&sid=2a9c482911c6001678cb4679a4a2e863) I thought I was home free.
However WebLogic has other ideas. My unit test of creating a docx with custom XML works just fine. However when I invoke this function within my web application running under WebLogic 10 it fails with the the following exception
- Code: Select all
java.lang.IllegalArgumentException: obj parameter must not be null
at javax.xml.bind.helpers.AbstractMarshallerImpl.checkNotNull(AbstractMarshallerImpl.java:398)
at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:90)
at org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:492)
at org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:474)
at org.docx4j.openpackaging.parts.CustomXmlDataStoragePart.applyBindings(CustomXmlDataStoragePart.java:480)