You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by Ch...@linedata.com on 2002/07/30 19:10:51 UTC
org.apache.xindice.client.corba.db.APIException: IDL:org/apache/xindice/client/corba/db/APIException:1.0
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/node[@id
='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/node[@id
='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(APIExceptionHelper.java:112)
at org.apache.xindice.client.corba.db._CollectionStub.queryCollection
(_CollectionStub.java:833)
at
org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateResult(XUpdateQueryServiceImpl.java:165)
at
org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.update(XUpdateQueryServiceImpl.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