Hi, I'm developing a web app using tomcat and docx4j to generate documents from the web. The first time i start Tomcat and run the web app proyect, everything works fine. I can generate the documents. However, when I run the proyect again, I got the following error:
2013-03-26 15:13:58,422 INFO [org.docx4j.openpackaging.parts.JaxbXmlPart] - <For org.docx4j.openpackaging.parts.WordprocessingML.HeaderPart, unmarshall via binder>
java.lang.NullPointerException
at org.apache.xml.serializer.OutputPropertiesFactory.getDefaultMethodProperties(OutputPropertiesFactory.java:260)
at org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.java:83)
at org.apache.xalan.transformer.TransformerIdentityImpl.<init>(TransformerIdentityImpl.java:88)
at org.apache.xalan.processor.TransformerFactoryImpl.newTransformerHandler(TransformerFactoryImpl.java:755)
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.createTransformerHandler(JAXBContextImpl.java:705)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.DomLoader$State.<init>(DomLoader.java:52)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.DomLoader.startElement(DomLoader.java:102)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.ProxyLoader.startElement(ProxyLoader.java:44) ...