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)
Logs report a bunch of
- Code: Select all
- 2010-11-22 16:00:18,035 WARN JaxbValidationEventHandler - [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/wordprocessingml/2006
 /main", local:"compatSetting"). Expected
messages as well.
I am able to reproduce this error in my out-of-container unit test if I force weblogic.jar into the head of the classpath.
Does this error suggest something to you? Any suggestions on how to get around it?


 News
 News Site map
 Site map SitemapIndex
 SitemapIndex RSS Feed
 RSS Feed