Hi,

I am just gettings started with Xindice, and I have run into a problem 
upgrading from DbXML to Xindice. A test case I was running with an XUpdate 
query is not working any more (as far as I can tell, nothing else has changed 
apart from the move from DbXML to Xindice).

Here is the sequence and stack trace, with a few comments :

XPath query //data[userID='9' and scoID='35327']/cmi/core/score/raw/value 
returned 1 result 
[comment: i.e. the document exists]

Executing update <xu:modifications version="1.0" 
xmlns:xu="http://www.xmldb.org/xupdate";> <xu:update select="//data[userID='9' 
and scoID='35327']/cmi/core/score/raw/value">15</xu:update></xu:modifications>
[comment: The query is exactly the same as it was before]

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(Unknown 
Source)
        at 
org.apache.xindice.client.corba.db._CollectionStub.queryCollection(Unknown 
Source)
        at 
org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateResult(Unknown
 Source)
        at 
org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.update(Unknown 
Source)
        at 
com.swisscom.lea.rte.data.xindice.XindiceUtils.update(XindiceUtils.java:103)
        at 
com.swisscom.lea.rte.data.xindice.XindiceHelper.updateProperty(XindiceHelper.java:152)
        at 
com.swisscom.lea.rte.data.xindice.XindiceDataManager.performSetOperation(XindiceDataManager.java:126)
        at 
com.swisscom.lea.rte.data.xindice.XindiceDataManagerTest.testPerformSetOperation(XindiceDataManagerTest.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at junit.framework.TestCase.runTest(TestCase.java:166)
        at junit.framework.TestCase.runBare(TestCase.java:140)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:131)
        at junit.framework.TestSuite.runTest(TestSuite.java:173)
        at junit.framework.TestSuite.run(TestSuite.java:168)
        at junit.textui.TestRunner.doRun(TestRunner.java:74)
        at junit.textui.TestRunner.start(TestRunner.java:234)
        at junit.textui.TestRunner.main(TestRunner.java:112)
18 f�vr. 2002 12:47:07 com.swisscom.lea.rte.data.xindice.XindiceHelper 
updateProperty
GRAVE: com.swisscom.lea.utils.XMLException: org.xmldb.api.base.XMLDBException: 
Query Processing Error
        at org.apache.xindice.core.FaultCodes.createXMLDBException(Unknown 
Source)
        at 
org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateResult(Unknown
 Source)
        at 
org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.update(Unknown 
Source)

Any ideas what might be causing this (I have, of course, changed all the 
dbxml's to Xindice's, and the database seems to be working fine apart from 
this).

Thanks,

John

Swisscom IT Services AG         mailto:[EMAIL PROTECTED]
eLearning Solutions              
John Prince, IT-EBS-BKC-LEA
Application Architect           phone   +41 31 342 6177
Postfach                                mobile  +41 79 752 1237
CH-3050 Bern                    fax     +41 31 342 9889

Reply via email to