Re: XMLDB Exception 0: Failed to execute command 'InsertResource'

Natalia Shilenkova <[email protected]> Sat, 13 Mar 2010 19:37:01 -0500
Newsgroups gmane.text.xml.xindice.user
Message-ID <[email protected]>
--Apple-Mail-82-309529619
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

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
>=20
> I am using xindice version 1.1 and get the following error when adding =
some XML documents:
>=20
> $ ./bin/xindice ad -v -c /db/legislation -f tmp.xml=20
> 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(Col=
lectionImpl.java:125)
>         at =
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(Collec=
tionImpl.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(Col=
lectionImpl.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(Col=
lectionImpl.java:113)
>         at =
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(Collec=
tionImpl.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)
>=20
> 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.=20
> 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.
>=20
>=20
> Any ideas?
>=20


--Apple-Mail-82-309529619
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi =
Jethro,<div><br></div><div>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.</div><div><br></div><div>Regards,</div><div>Natalia</div=
><div><br><div><div>On Mar 12, 2010, at 9:47 AM, Jethro Grassie =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite">Hi<br><br>I am using xindice version 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 register =
database<br>XMLDB Exception 0: Failed to execute command =
'InsertResource' 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>
org.xmldb.api.base.XMLDBException: Failed to execute command =
'InsertResource' 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(Col=
lectionImpl.java:125)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(Collec=
tionImpl.java:241)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:89)<=
br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.tools.XMLTools.execute(XMLTools.java:284)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.tools.XMLTools.process(XMLTools.java:164)<br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.tools.XMLTools.main(XMLTools.java:84)<br>Caused by: =
org.apache.xmlrpc.XmlRpcException: Error parsing =
Document<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java)<br>&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(Col=
lectionImpl.java:113)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... =
5 more<br>[[email protected]: Error parsing =
Document<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java)<br>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java)<br>&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(Col=
lectionImpl.java:113)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(Collec=
tionImpl.java:241)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:89)<=
br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.tools.XMLTools.execute(XMLTools.java:284)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.tools.XMLTools.process(XMLTools.java:164)<br>&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xindice.tools.XMLTools.main(XMLTools.java:84)<br><br>Note =
this doesnt always happen, just some XML files.<br>I am putting a huge =
amount of XML documents which all conform to the same schema into a =
xindice database. <br>
About 25% are failing with the same error as above.<br>I have double and =
triple checked the XML is valid by checking with a validating =
parser.<br><br><br>Any ideas?<br><br>
</blockquote></div><br></div></body></html>=

--Apple-Mail-82-309529619--