docx4j2.8.1 in jboss
Posted: Wed Sep 25, 2013 2:52 am
I am getting the following exception while executing this line of code "wordMLPackage = WordprocessingMLPackage.load(sourceFile);". The "mc-preprocessor.xslt" file is available inside the docx4j jar but not sure why i am getting the error.
I am new to docx4j and have limited coding experience. Couldn't get much information in internet. Please help resolve this.
I am new to docx4j and have limited coding experience. Couldn't get much information in internet. Please help resolve this.
- Code: Select all
2013-09-19 17:14:12,427 INFO [STDOUT] (http-0.0.0.0-9080-3) 2013-09-19 17:14:12,427 ERROR [http-0.0.0.0-9080-3] [org.docx4j.utils.ResourceUtils] - Couldn't get resource: org/docx4j/jaxb/mc-preprocessor.xslt
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) java.lang.NullPointerException
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.utils.ResourceUtils.getResource(ResourceUtils.java:45)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.jaxb.JaxbValidationEventHandler.getMcPreprocessor(JaxbValidationEventHandler.java:55)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware.unmarshal(JaxbXmlPartXPathAware.java:202)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.io.LoadFromZipNG.getRawPart(LoadFromZipNG.java:560)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.io.LoadFromZipNG.getPart(LoadFromZipNG.java:429)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.io.LoadFromZipNG.addPartsFromRelationships(LoadFromZipNG.java:352)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.io.LoadFromZipNG.process(LoadFromZipNG.java:245)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.io.LoadFromZipNG.get(LoadFromZipNG.java:193)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:301)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:245)
2013-09-19 17:14:12,427 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:195)
2013-09-19 17:14:12,428 ERROR [STDERR] (http-0.0.0.0-9080-3) at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:178)