Here's how you should be able to duplicate the error:
1. make sure Xindice is running under Tomcat 2. make sure there is an 'addressbook' collection under /db xindice ac -c /db -n addressbook 3. In Xindice 1.1 tree: cd to ...java/examples/guide directory 4. using the guide examples add documents to the addressbook (these work) ./run org.apache.xindice.examples.AddDocument xml/address1.xml ./run org.apache.xindice.examples.AddDocument xml/address2.xml 5. using the guide examples update the documents in the addressbook ./run org.apache.xindice.examples.XUpdate (this does not work)
You should now see the error.
When I talked about "writing a unit test" I never meant "specifying a use case". What you are defining is a "use case" not a "unit test".
The difference is that you can automatically execute a unit test against your latest code. You'll agree that the above use case needs quite some work to execute the code. Moreover when you're debugging and changing a few lines before re-deploying. And so on, and so forth.
I have migrated all the tests to the JUnit framework, precisely to be able to repeat the tests over and over again. For more information: <http://junit.sourceforge.net/doc/testinfected/testing.htm>.
So what is to be done?
1) have a look at the "java/test" folder and execute the tests (ant test-unit / test-integration-embed / test-integration-xmlrpc)
2) write an integration test that reveals the bug
3) debug and fix the problem
4) submit the patch
and that's all :-)
-Vladimir
-- Vladimir R. Bossicard Apache Xindice - http://xml.apache.org/xindice
