- Code: Select all
Exception in thread "main" com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
There's no ObjectFactory with an @XmlElementDecl for the element {http://schemas.microsoft.com/office/word/2012/wordml}dataBinding.
this problem is related to the following location:
at protected java.util.List org.docx4j.wml.SdtPr.rPrOrAliasOrLock
at org.docx4j.wml.SdtPr
at protected org.docx4j.wml.SdtPr org.docx4j.wml.SdtBlock.sdtPr
at org.docx4j.wml.SdtBlock
at protected java.util.List org.docx4j.wml.Body.content
at org.docx4j.wml.Body
at protected org.docx4j.wml.Body org.docx4j.wml.Document.body
at org.docx4j.wml.Document
at public org.docx4j.wml.Document org.docx4j.wml.ObjectFactory.createDocument()
at org.docx4j.wml.ObjectFactory
at protected java.util.List org.docx4j.wml.CTPictureBase.anyAndAny
at org.docx4j.wml.CTPictureBase
at org.docx4j.wml.Pict
at protected org.docx4j.wml.Pict org.docx4j.wml.Numbering$NumPicBullet.pict
at org.docx4j.wml.Numbering$NumPicBullet
at protected java.util.List org.docx4j.wml.Numbering.numPicBullet
at org.docx4j.wml.Numbering
at protected org.docx4j.wml.Numbering org.docx4j.convert.in.word2003xml.Transition03To06.numbering
at org.docx4j.convert.in.word2003xml.Transition03To06
at public org.docx4j.convert.in.word2003xml.Transition03To06 org.docx4j.convert.in.word2003xml.ObjectFactory.createTransition03To06()
at org.docx4j.convert.in.word2003xml.ObjectFactory
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:128)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:277)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at test.Word2003XmlConverter.<init>(Word2003XmlConverter.java:72)
at test.Word2003XmlConverter.main(Word2003XmlConverter.java:159)
May be because it's just a proof of concept