Re: XMLDB Exception 0: Failed to execute command 'InsertResource'
Jethro Grassie <[email protected]> Mon, 15 Mar 2010 11:33:29 +0000
| Newsgroups | gmane.text.xml.xindice.user |
|---|---|
| Message-ID | <[email protected]> |
--0016e64762cc0d47920481d5404d Content-Type: text/plain; charset=ISO-8859-1 Hi Natalia, There's nothing to note in the server log unfortunately. I have tried this now on a couple of machines with the same problem. On Sun, Mar 14, 2010 at 12:37 AM, Natalia Shilenkova <[email protected]>wrote: > Hi Jethro, > > Unfortunately, the exception trace you included is from the client and does > not provide enough information. Can you please check Xindice server logs and > see what kind of problems are reported there? Server logs by default are > located in Xindice installation directory, under logs/xindice.out. > > Regards, > Natalia > > On Mar 12, 2010, at 9:47 AM, Jethro Grassie wrote: > > Hi > > I am using xindice version 1.1 and get the following error when adding some > XML documents: > > $ ./bin/xindice ad -v -c /db/legislation -f tmp.xml > trying to register database > XMLDB Exception 0: Failed to execute command 'InsertResource' on server: > http://127.0.0.1:8888/xindice/, message: Error parsing Document > org.xmldb.api.base.XMLDBException: Failed to execute command > 'InsertResource' on server: http://127.0.0.1:8888/xindice/, message: Error > parsing Document > at > org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:125) > at > org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(CollectionImpl.java:241) > at > org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:89) > at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:284) > at org.apache.xindice.tools.XMLTools.process(XMLTools.java:164) > at org.apache.xindice.tools.XMLTools.main(XMLTools.java:84) > Caused by: org.apache.xmlrpc.XmlRpcException: Error parsing Document > at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java) > at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java) > at > org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:113) > ... 5 more > [[email protected]: Error parsing Document > at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java) > at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java) > at > org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:113) > at > org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(CollectionImpl.java:241) > at > org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:89) > at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:284) > at org.apache.xindice.tools.XMLTools.process(XMLTools.java:164) > at org.apache.xindice.tools.XMLTools.main(XMLTools.java:84) > > Note this doesnt always happen, just some XML files. > I am putting a huge amount of XML documents which all conform to the same > schema into a xindice database. > About 25% are failing with the same error as above. > I have double and triple checked the XML is valid by checking with a > validating parser. > > > Any ideas? > > > --0016e64762cc0d47920481d5404d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Natalia,<br><br>There's nothing to note in the server log unfortunat= ely.<br>I have tried this now on a couple of machines with the same problem= .<br><br><br><br><br><div class=3D"gmail_quote">On Sun, Mar 14, 2010 at 12:= 37 AM, Natalia Shilenkova <span dir=3D"ltr"><<a href=3D"mailto:nshilenko= [email protected]">[email protected]</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde= r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style=3D"wor= d-wrap: break-word;">Hi Jethro,<div><br></div><div>Unfortunately, the excep= tion trace you included is from the client and does not provide enough info= rmation. Can you please check Xindice server logs and see what kind of prob= lems are reported there? Server logs by default are located in Xindice inst= allation directory, under logs/xindice.out.</div> <div><br></div><div>Regards,</div><div>Natalia</div><div><div></div><div cl= ass=3D"h5"><div><br><div><div>On Mar 12, 2010, at 9:47 AM, Jethro Grassie w= rote:</div><br><blockquote type=3D"cite">Hi<br><br>I am using xindice versi= on 1.1 and get the following error when adding some XML documents:<br> <br>$ ./bin/xindice ad -v -c /db/legislation -f tmp.xml <br>trying to regis= ter database<br>XMLDB Exception 0: Failed to execute command 'InsertRes= ource' on server: <a href=3D"http://127.0.0.1:8888/xindice/" target=3D"= _blank">http://127.0.0.1:8888/xindice/</a>, message: Error parsing Document= <br> org.xmldb.api.base.XMLDBException: Failed to execute command 'InsertRes= ource' on server: <a href=3D"http://127.0.0.1:8888/xindice/" target=3D"= _blank">http://127.0.0.1:8888/xindice/</a>, message: Error parsing Document= <br> =A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.client.xmldb.xmlrpc.CollectionI= mpl.runRemoteCommand(CollectionImpl.java:125)<br> =A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.client.xmldb.xmlrpc.CollectionI= mpl.storeResource(CollectionImpl.java:241)<br>=A0=A0=A0=A0=A0=A0=A0 at org.= apache.xindice.tools.command.AddDocument.execute(AddDocument.java:89)<br>= =A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.tools.XMLTools.execute(XMLTools= .java:284)<br> =A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.tools.XMLTools.process(XMLTools= .java:164)<br>=A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.tools.XMLTools.ma= in(XMLTools.java:84)<br>Caused by: org.apache.xmlrpc.XmlRpcException: Error= parsing Document<br>=A0=A0=A0=A0=A0=A0=A0 at org.apache.xmlrpc.XmlRpcClien= t$Worker.execute(XmlRpcClient.java)<br> =A0=A0=A0=A0=A0=A0=A0 at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClien= t.java)<br>=A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.client.xmldb.xmlrpc.= CollectionImpl.runRemoteCommand(CollectionImpl.java:113)<br>=A0=A0=A0=A0=A0= =A0=A0 ... 5 more<br>[[email protected]: Error pars= ing Document<br> =A0=A0=A0=A0=A0=A0=A0 at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlR= pcClient.java)<br>=A0=A0=A0=A0=A0=A0=A0 at org.apache.xmlrpc.XmlRpcClient.e= xecute(XmlRpcClient.java)<br>=A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.cl= ient.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:113)<= br> =A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.client.xmldb.xmlrpc.CollectionI= mpl.storeResource(CollectionImpl.java:241)<br>=A0=A0=A0=A0=A0=A0=A0 at org.= apache.xindice.tools.command.AddDocument.execute(AddDocument.java:89)<br>= =A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.tools.XMLTools.execute(XMLTools= .java:284)<br> =A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.tools.XMLTools.process(XMLTools= .java:164)<br>=A0=A0=A0=A0=A0=A0=A0 at org.apache.xindice.tools.XMLTools.ma= in(XMLTools.java:84)<br><br>Note this doesnt always happen, just some XML f= iles.<br>I am putting a huge amount of XML documents which all conform to t= he same schema into a xindice database. <br> About 25% are failing with the same error as above.<br>I have double and tr= iple checked the XML is valid by checking with a validating parser.<br><br>= <br>Any ideas?<br><br> </blockquote></div><br></div></div></div></div></blockquote></div><br> --0016e64762cc0d47920481d5404d--