XMLDB Exception 0: Failed to execute command 'InsertResource'
Jethro Grassie <[email protected]> Fri, 12 Mar 2010 14:47:07 +0000
| Newsgroups | gmane.text.xml.xindice.user |
|---|---|
| Message-ID | <[email protected]> |
--0016362852fe0136a404819b9b18
Content-Type: text/plain; charset=ISO-8859-1
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?
--0016362852fe0136a404819b9b18
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi<br><br>I am using xindice version 1.1 and get the following error when a=
dding some XML documents:<br><br>$ ./bin/xindice ad -v -c /db/legislation -=
f tmp.xml <br>trying to register database<br>XMLDB Exception 0: Failed to e=
xecute command 'InsertResource' on server: <a href=3D"http://127.0.=
0.1:8888/xindice/">http://127.0.0.1:8888/xindice/</a>, message: Error parsi=
ng 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/">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.CollectionImpl.runRemot=
eCommand(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>
--0016362852fe0136a404819b9b18--