|
Hi Todd, sorry about that last message, since i saw the error i was expecting, i didnt think to check the export command syntax. >xindice.sh export -v -c xmldb:xindice://localhost:8080/db -n globalJobs1 -f globalJobs1 trying to register database Creating directory globalJobs1/db Extracting 0 files from xmldb:xindice://localhost:8080/db Creating directory globalJobs1/db/products Extracting 0 files from xmldb:xindice://localhost:8080/db/products ............... Creating directory globalJobs1/db/site Extracting 1 files from xmldb:xindice://localhost:8080/db/site Creating directory globalJobs1/db/jobs Extracting 0 files from xmldb:xindice://localhost:8080/db/jobs Creating directory globalJobs1/db/jobs/globalJobs1 XMLDB Exception 0: Failed to execute command 'ListDocuments' on server: http://localhost:8080/xindice/,message: java.lang.Exception: java.lang.NullPointerException org.xmldb.api.base.XMLDBException: Failed to execute command 'ListDocuments' on server: http://localhost:8080/xindice/, message: java.lang.Exception: java.lang.NullPointerException at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:124) at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.listResources(CollectionImpl.java:488) ..... Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.Exception: java.lang.NullPointerException at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java) ... 8 more [[EMAIL PROTECTED]: java.lang.Exception: java.lang.NullPointerException .... at org.apache.xindice.tools.command.ExportTree.process(ExportTree.java:148) at org.apache.xindice.tools.command.ExportTree.execute(ExportTree.java:71) at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:293) at org.apache.xindice.tools.XMLTools.process(XMLTools.java:171) at org.apache.xindice.tools.XMLTools.main(XMLTools.java:82) and listing the document is where i encountered the null pointer error in the first place. I am able to list other documents/collections in this db >xindice.sh ld -v -c xmldb:xindice://localhost:8080/db/jobs/globalJobs1 trying to register database XMLDB Exception 0: Failed to execute command 'ListDocuments' on server: http://localhost:8080/xindice/,message: java.lang.Exception: java.lang.NullPointerException org.xmldb.api.base.XMLDBException: Failed to execute command 'ListDocuments' on server: http://localhost:8080/xindice/, message: java.lang.Exception: java.lang.NullPointerException at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:124) at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.listResources(CollectionImpl.java:488) at org.apache.xindice.tools.command.ListCollectionDocuments.execute(ListCollectionDocuments.java:55) at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:293) at org.apache.xindice.tools.XMLTools.process(XMLTools.java:171) at org.apache.xindice.tools.XMLTools.main(XMLTools.java:82) Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.Exception: java.lang.NullPointerException 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:112) ... 5 more [[EMAIL PROTECTED]: java.lang.Exception: java.lang.NullPointerException 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:112) at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.listResources(CollectionImpl.java:488) at org.apache.xindice.tools.command.ListCollectionDocuments.execute(ListCollectionDocuments.java:55) at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:293) at org.apache.xindice.tools.XMLTools.process(XMLTools.java:171) at org.apache.xindice.tools.XMLTools.main(XMLTools.java:82) hope this helps/is fixable thanks a lot for your quick responses. i'm new to this project, and i havent worked with xindice before so i'm all at sea here. Rohit Todd Byrne wrote: I wasn't quite clear but try this: xindice.sh export -v -c xmldb:xindice://localhost:8080/db -n globalJobs1 -f globalJobs1Also try listing the documents from database and retriving them one by one. $XINDICE_HOME/bin/xindice ld -c xmldb:xindice://localhost:8080/db/globalJobs1 Todd Rohit Mathur wrote:Hi Todd, So the original db was running off an application that was a wrapper around xindice, which is why i didnt want to send details. I have since copied the db over to another machine where I'm running the xindice 1.1b4. I tried what you recommended on a subset of the db (i.e. db/jobs). Here is the error i get $ xindice.sh export -v -c xmldb:xindice://localhost:8080/db/jobs -n test -f test trying to register database Creating directory test/jobs Extracting 0 files from xmldb:xindice://localhost:8080/db/jobs Creating directory test/jobs/globalJobs1 XMLDB Exception 0: Failed to execute command 'ListDocuments' on server: http://localhost:8080/xindice/,message: java.lang.Exception: java.lang.NullPointerException org.xmldb.api.base.XMLDBException: Failed to execute command 'ListDocuments' on server: http://localhost:8080/xindice/, message: java.lang.Exception: java.lang.NullPointerException at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:124) at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.listResources(CollectionImpl.java:488) at org.apache.xindice.tools.command.ExportTree.process(ExportTree.java:111) at org.apache.xindice.tools.command.ExportTree.process(ExportTree.java:148) at org.apache.xindice.tools.command.ExportTree.execute(ExportTree.java:71) at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:293) at org.apache.xindice.tools.XMLTools.process(XMLTools.java:171) at org.apache.xindice.tools.XMLTools.main(XMLTools.java:82) Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.Exception: java.lang.NullPointerException 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:112) ... 7 more [[EMAIL PROTECTED]: java.lang.Exception: java.lang.NullPointerException 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:112) at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.listResources(CollectionImpl.java:488) at org.apache.xindice.tools.command.ExportTree.process(ExportTree.java:111) at org.apache.xindice.tools.command.ExportTree.process(ExportTree.java:148) at org.apache.xindice.tools.command.ExportTree.execute(ExportTree.java:71) at org.apache.xindice.tools.XMLTools.execute(XMLTools.java:293) at org.apache.xindice.tools.XMLTools.process(XMLTools.java:171) at org.apache.xindice.tools.XMLTools.main(XMLTools.java:82) thanks, Rohit P.S. I am able to add/remove collections from db/jobs, but not from db/globalJobs1 [EMAIL PROTECTED] wrote: |
- recovering potentially corrupt data Rohit Mathur
- Re: recovering potentially corrupt data byrne
- Re: recovering potentially corrupt data Rohit Mathur
- Re: recovering potentially corrupt data Todd Byrne
- Re: recovering potentially corrupt da... Rohit Mathur
- Re: recovering potentially corru... Todd Byrne
- Re: recovering potentially c... Rohit Mathur
- Re: recovering potential... Georg Sauer-Limbach
- Re: recovering potential... Todd Byrne
- Re: recovering potential... Rohit Mathur
- Re: recovering potential... Vadim Gritsenko
- Re: recovering potential... Todd Byrne
