Re: XMLDB Exception 0: Failed to execute command 'InsertResource'
Natalia Shilenkova <[email protected]> Wed, 17 Mar 2010 21:07:31 -0400
| Newsgroups | gmane.text.xml.xindice.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-141-656958887 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii The problem was caused by incorrect assumption that processing = instruction cannot be inside XML elements, documents were mistakenly = rejected as not well formed. This is fixed in current SVN trunk. Regards, Natalia On Mar 15, 2010, at 1:41 PM, Jethro Grassie wrote: > Hi Natalia, >=20 > Attached is one of the XML files that fails. > I know its fairly large (near 1mb) but I have larger documents going = in fine so its not a size issue. > Also I have validated it against the schema and checked the character = encoding.=20 > All of the XML I am trying to insert are the same format and validate = to the same schema and I can see nothing that points to why it wont = load. Its really odd. >=20 > Jethro >=20 >=20 >=20 > On Mon, Mar 15, 2010 at 3:20 PM, Natalia Shilenkova = <[email protected]> wrote: > Would you be able to provide a sample of a failing document? If not, > do you see anything that failing documents have in common? Having a > sample of the document that causes the trouble would be ideal. >=20 > Regards, > Natalia >=20 > On Mon, Mar 15, 2010 at 7:33 AM, Jethro Grassie <[email protected]> = wrote: > > 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(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) > >> > >> 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? > >> > >> > > > > >=20 > <tmp.xml> --Apple-Mail-141-656958887 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii <html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>The problem was caused by incorrect assumption that processing instruction cannot be inside XML elements, documents were mistakenly rejected as not well formed. This is fixed in current SVN trunk.</div><div><br></div><div>Regards,</div><div>Natalia</div><br><div><div>On Mar 15, 2010, at 1:41 PM, Jethro Grassie wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Natalia,<br><br>Attached is one of the XML files that fails.<br>I know its fairly large (near 1mb) but I have larger documents going in fine so its not a size issue.<br>Also I have validated it against the schema and checked the character encoding. <br> All of the XML I am trying to insert are the same format and validate to the same schema and I can see nothing that points to why it wont load. Its really odd.<br><br>Jethro<br><br><br><br><div class="gmail_quote">On Mon, Mar 15, 2010 at 3:20 PM, Natalia Shilenkova <span dir="ltr"><<a href="mailto:[email protected]">[email protected]</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Would you be able to provide a sample of a failing document? If not,<br> do you see anything that failing documents have in common? Having a<br> sample of the document that causes the trouble would be ideal.<br> <br> Regards,<br> <font color="#888888">Natalia<br> </font><div><div></div><div class="h5"><br> On Mon, Mar 15, 2010 at 7:33 AM, Jethro Grassie <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br> > Hi Natalia,<br> ><br> > There's nothing to note in the server log unfortunately.<br> > I have tried this now on a couple of machines with the same problem.<br> ><br> ><br> ><br> ><br> > On Sun, Mar 14, 2010 at 12:37 AM, Natalia Shilenkova <<a href="mailto:[email protected]">[email protected]</a>><br> > wrote:<br> >><br> >> Hi Jethro,<br> >> Unfortunately, the exception trace you included is from the client and<br> >> does not provide enough information. Can you please check Xindice server<br> >> logs and see what kind of problems are reported there? Server logs by<br> >> default are located in Xindice installation directory, under<br> >> logs/xindice.out.<br> >> Regards,<br> >> Natalia<br> >> On Mar 12, 2010, at 9:47 AM, Jethro Grassie wrote:<br> >><br> >> Hi<br> >><br> >> I am using xindice version 1.1 and get the following error when adding<br> >> 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:<br> >> <a href="http://127.0.0.1:8888/xindice/" target="_blank">http://127.0.0.1:8888/xindice/</a>, message: Error parsing Document<br> >> org.xmldb.api.base.XMLDBException: Failed to execute command<br> >> 'InsertResource' on server: <a href="http://127.0.0.1:8888/xindice/" target="_blank">http://127.0.0.1:8888/xindice/</a>, message: Error<br> >> parsing Document<br> >> at<br> >> org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:125)<br> >> at<br> >> org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(CollectionImpl.java:241)<br> >> at<br> >> org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:89)<br> >> at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:284)<br> >> at org.apache.xindice.tools.XMLTools.process(XMLTools.java:164)<br> >> at org.apache.xindice.tools.XMLTools.main(XMLTools.java:84)<br> >> Caused by: org.apache.xmlrpc.XmlRpcException: Error parsing Document<br> >> at<br> >> org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java)<br> >> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java)<br> >> at<br> >> org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:113)<br> >> ... 5 more<br> >> [[email protected]: Error parsing Document<br> >> at<br> >> org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java)<br> >> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java)<br> >> at<br> >> org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:113)<br> >> at<br> >> org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.storeResource(CollectionImpl.java:241)<br> >> at<br> >> org.apache.xindice.tools.command.AddDocument.execute(AddDocument.java:89)<br> >> at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:284)<br> >> at org.apache.xindice.tools.XMLTools.process(XMLTools.java:164)<br> >> 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<br> >> 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<br> >> validating parser.<br> >><br> >><br> >> Any ideas?<br> >><br> >><br> ><br> ><br> </div></div></blockquote></div><br> <span><tmp.xml></span></blockquote></div><br></body></html> --Apple-Mail-141-656958887--