Hi Jason,
I am getting org.docx4j.openpackaging.exceptions.InvalidFormatException while trying to generate the document.
Detials are below:
JDK details:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Operating system details:
Windows 7 64-bit operating system
Ms Word:
2010 32-bit
Tomcat details:
apache-tomcat-6.0.28/apache-tomcat-7.0.54
When I tried this using eclipse project I could run it successfully but getting below exception when I run it in web apps.
[size=85]2014-08-25 17:36:58,422 [ http-8686-5] [TABTHREAD0] [ ] [ TestApp:01.01.01] (contenttype.ContentTypeManager) ERROR 10.225.114.54|10.225.114.54 kills -
java.lang.NullPointerException
at org.docx4j.openpackaging.contenttype.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:671)
at org.docx4j.openpackaging.io3.Load3.get(Load3.java:132)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:459)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:376)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:342)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:307)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:174)
at com.doccomprules.generated.pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA$1DocumentParser.read(pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.java:155)
at com.doccomprules.generated.pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA$1DocumentParser.generateDocument(pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.java:177)
at com.doccomprules.generated.pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.pzGenerateDocument01_01_01(pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.java:1131)
at com.doccomprules.generated.pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.invoke(pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.java:74)
at com.doccomp.doccomprules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)
at com.doccomp.doccomprules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)
at com.doccomp.doccomprules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:8627)
at com.doccomp.doccomprules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.doccomprules.generated.pega_appdefinition_documentapp.pzGenerateDocument(pega_appdefinition_documentapp.java:561)
at com.doccomprules.generated.activity.ra_action_pzdocumentnow_d67082a3cdf640bd88444a514c96078a.step13_circum0(ra_action_pzdocumentnow_d67082a3cdf640bd88444a514c96078a.java:1062)
at com.doccomprules.generated.activity.ra_action_pzdocumentnow_d67082a3cdf640bd88444a514c96078a.perform(ra_action_pzdocumentnow_d67082a3cdf640bd88444a514c96078a.java:327)
at com.doccomp.doccomprules.session.internal.mgmt.Executable.doActivity(Executable.java:3295)
at com.doccomp.doccomprules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:641)
at com.doccomp.doccomprules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:433)
at com.doccomp.doccomprules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3430)
at com.doccomp.doccomprules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:402)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.doccomp.doccomprules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1203)
at com.doccomp.doccomprules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:930)
at com.doccomp.doccomprules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:815)
at com.doccomp.doccomprules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:348)
at com.doccomp.doccomprules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:789)
at com.doccomp.doccomprules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:315)
at com.doccomp.doccomprules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:263)
at com.doccomp.doccomprules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:240)
at com.doccomp.doccomprules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278)
at com.doccomp.doccomprules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223)
at com.doccomp.doccomprules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:485)
at com.doccomp.doccomprules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:290)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.doccomp.doccomprules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:334)
at com.doccomp.doccomprules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:375)
at com.doccomp.doccomprules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:216)
at com.doccomp.doccomprules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:265)
at com.doccomp.doccomprules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:118)
at com.doccomp.doccomprules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724)
at org.docx4j.openpackaging.io3.Load3.get(Load3.java:134)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:459)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:376)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:342)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:307)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:174)
at com.doccomprules.generated.pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA$1DocumentParser.read(pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.java:155)
at com.doccomprules.generated.pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA$1DocumentParser.generateDocument(pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.java:177)
at com.doccomprules.generated.pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.pzGenerateDocument01_01_01(pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.java:1131)
at com.doccomprules.generated.pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.invoke(pzGenerateDocument_010101_ZgjjIC39QR4tA$rpxU8ObA.java:74)
at com.doccomp.doccomprules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133)
at com.doccomp.doccomprules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110)
at com.doccomp.doccomprules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:8627)
at com.doccomp.doccomprules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181)
at com.doccomprules.generated.pega_appdefinition_documentapp.pzGenerateDocument(pega_appdefinition_documentapp.java:561)
at com.doccomprules.generated.activity.ra_action_pzdocumentnow_d67082a3cdf640bd88444a514c96078a.step13_circum0(ra_action_pzdocumentnow_d67082a3cdf640bd88444a514c96078a.java:1062)
at com.doccomprules.generated.activity.ra_action_pzdocumentnow_d67082a3cdf640bd88444a514c96078a.perform(ra_action_pzdocumentnow_d67082a3cdf640bd88444a514c96078a.java:327)
at com.doccomp.doccomprules.session.internal.mgmt.Executable.doActivity(Executable.java:3295)
at com.doccomp.doccomprules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:641)
at com.doccomp.doccomprules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:433)
at com.doccomp.doccomprules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3430)
at com.doccomp.doccomprules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:402)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.doccomp.doccomprules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1203)
at com.doccomp.doccomprules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:930)
at com.doccomp.doccomprules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:815)
at com.doccomp.doccomprules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:348)
at com.doccomp.doccomprules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:789)
at com.doccomp.doccomprules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:315)
at com.doccomp.doccomprules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:263)
at com.doccomp.doccomprules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:240)
at com.doccomp.doccomprules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278)
at com.doccomp.doccomprules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223)
at com.doccomp.doccomprules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:485)
at com.doccomp.doccomprules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:290)
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.doccomp.doccomprules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:334)
at com.doccomp.doccomprules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:375)
at com.doccomp.doccomprules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:216)
at com.doccomp.doccomprules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:265)
at com.doccomp.doccomprules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:118)
at com.doccomp.doccomprules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.docx4j.openpackaging.exceptions.InvalidFormatException: Bad [Content_Types].xml
at org.docx4j.openpackaging.contenttype.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:705)
at org.docx4j.openpackaging.io3.Load3.get(Load3.java:132)
... 60 more
Caused by: java.lang.NullPointerException
at org.docx4j.openpackaging.contenttype.ContentTypeManager.parseContentTypesFile(ContentTypeManager.java:671)
... 61 more[/size]
Any help would be appreciated.
Thanks,
Vinay