:-)
I found the tip on the archive for the mailing list.
I also found it useful to test the XUpdate I was trying to use with other tools before using XUpdate/Xindice. I'm using xsh and finding it useful.
http://xsh.sourceforge.net/
It's an XML shell tool - perl. It includes xindice
Gary
Lennard Fuller wrote:
I'm also using JSDK 1.4 and had recieved a similar exception everytime I tried to use XUpdate. Gary Frederick's suggestion resolved the issue.
Set $XINDICE_HOME/config/vm.cfg to include:
-Djava.endorsed.dirs=<whatever the path is to your $XINDICE_HOME>/java/lib
I haven't had any problems with XUpdate since that change was made... thanks Gary:)
Hope that helps,
Lennard
On Wednesday 31 July 2002 05:23 am, [EMAIL PROTECTED] wrote:
Hello,
I have severals problems using XIndice . I use JSDK 1.4.1
1. Update and creation ? ------------------------------------- if I have the following XU query, does all my nodes have to exists before, or it will create the node path ?
tXupdate= "<xu:modifications version="1.0" xmlns:xu=" http://www.xmldb.org/xupdate"><xu:update select="nodes/[EMAIL PROTECTED] ='0']"><loginfo>VDF import</loginfo></xu:update></xu:modifications>"
2 - I have an exception when I try to update a node -------------------------------------------------------------------------- My code:
Collection tCollection = XMLDBCollectionsAlias.getDefaultXMLDBCollectionsAlias ().getCurrentCollection("JSM");
tXupdate= "<xu:modifications version="1.0" xmlns:xu=" http://www.xmldb.org/xupdate"><xu:update select="nodes/[EMAIL PROTECTED] ='0']"><loginfo>VDF import</loginfo></xu:update></xu:modifications>"
XUpdateQueryService tUpdateService = (XUpdateQueryService) tCollection.getService("XUpdateQueryService", "1.0"); long tUpdateEntriesCount = tUpdateService.update( tXupdate );
The exception : org.apache.xindice.client.corba.db.APIException: IDL:org/apache/xindice/client/corba/db/APIException:1.0 at org.apache.xindice.client.corba.db.APIExceptionHelper.read(APIExceptionHelp er.java:112) at org.apache.xindice.client.corba.db._CollectionStub.queryCollection (_CollectionStub.java:833) at org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateResu lt(XUpdateQueryServiceImpl.java:165) at org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.update(XUp dateQueryServiceImpl.java:185) at jsm.node.StatisticsNode.updatePersistent(StatisticsNode.java:114) at jsm.node.StatisticsNode.makePersistent(StatisticsNode.java:72) at odata.server.jboshandler.Activity.prepareStatistics(Activity.java:80) at odata.server.jboshandler.Activity.run(Activity.java:56)
3 - Notes -------------- I have do a lot of test, but I m unable to add anything in my document !!!
Please help me : ((
Regards
Christophe
