Page 1 of 1

Problem with OpenDope war

PostPosted: Thu Mar 08, 2012 1:17 am
by fkfausa
Hi!
For test purposes I have downloaded the OpenDope war project form GitHub, but I get the following error when testing my documents with an external xml file. Any suggestions?
Code: Select all
java.lang.NullPointerException
   org.docx4j.openpackaging.parts.XmlPart.setDocument(XmlPart.java:129)
   org.opendope.webapp.SubmitBoth.processForm(SubmitBoth.java:211)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   java.lang.reflect.Method.invoke(Method.java:597)
   com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
   com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
   com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
   com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
   com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
   com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
   com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
   com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
   com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
   com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
   com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
   com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
   com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
   com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

Re: Problem with OpenDope war

PostPosted: Fri Mar 09, 2012 8:02 pm
by jason
Could you post or email a docx and xml data file which exhibits the problem?

Re: Problem with OpenDope war

PostPosted: Sat Mar 10, 2012 12:48 am
by fkfausa
Sure, attached

Re: Problem with OpenDope war

PostPosted: Sat Mar 10, 2012 8:08 pm
by jason
The form requires both the "docx template" and an "XML data file".

You'll get that error if you don't provide an XML data file.

I tried your docx template with a suitable XML data file (I just extracted item3.xml from your docx), and it worked.