i had checked out the code from branch 2.7.1 i was able to create the build using ant script.
but for 2.7.0 i was not able to make the build as dependecaies are not getting resolved.
so now i am using docx4j-.2.7.1 as per gitHub version available
That NPE has gone by manipulating hasCode method
i have two jar file in in my application for JAXB jaxb-impl-2.2.jar,jaxb-api-2.2.jar and JAVA 1.6.
i am getting the following error
- Code: Select all
[2012-08-16 17:32:51,464][org.docx4j.jaxb.Context][ERROR][http-10008-1] [PANIC! No suitable JAXB implementation available]
[2012-08-16 17:32:54,730][org.docx4j.jaxb.Context][INFO][http-10008-1] [loading Context jc]
[2012-08-16 17:33:03,777][org.docx4j.jaxb.Context][INFO][http-10008-1] [loaded com.sun.xml.bind.v2.runtime.JAXBContextImpl .. loading others ..]
[2012-08-16 17:33:04,480][org.docx4j.jaxb.Context][INFO][http-10008-1] [.. others loaded ..]
[2012-08-16 17:33:04,542][org.docx4j.openpackaging.contenttype.ContentTypeManager][INFO][http-10008-1] [Detected WordProcessingML package ]
[2012-08-16 17:33:04,589][org.docx4j.openpackaging.parts.Part][INFO][http-10008-1] [/_rels/.rels]
[2012-08-16 17:33:04,589][org.docx4j.openpackaging.parts.relationships.RelationshipsPart][DEBUG][http-10008-1] [
]
javax.xml.bind.PropertyException: name: com.sun.xml.internal.bind.namespacePrefixMapper value: org.docx4j.jaxb.NamespacePrefixMapperSunInternal@16be8a0
at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:338)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:533)
at org.docx4j.jaxb.NamespacePrefixMapperUtils.getPrefixMapper(NamespacePrefixMapperUtils.java:53)
at org.docx4j.jaxb.Context.<clinit>(Context.java:54)
at org.docx4j.openpackaging.contenttype.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:643)
at org.docx4j.openpackaging.io.LoadFromZipNG.process(LoadFromZipNG.java:206)
at org.docx4j.openpackaging.io.LoadFromZipNG.get(LoadFromZipNG.java:193)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:225)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:210)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:184)
please find the attached log file for details.
please suggest how to resolve this
Thanks in Advance
Regards
Anil