On Mon, 18 Mar 2002, Thomas Sempf wrote:
> the request for a document over getContent is no problem. I am also
> capable of getting a node from the document over a xpath query. So i
> think there is no problem with collection, or is there one?
I seem to be seeing the same problem Thomas has.
I can XPath with no problems, but cannot ever XUpdate successfully, even
using the exact example from the Developer's Guide at this URL (with
the XML example loaded as /db/addressbook).
http://xml.apache.org/xindice/DevelopersGuide.html#N25D
I noticed that an exception is being caught inside XUpdateQuery.nodeSet
and replaced with a generic ProcessingException.
I modified that function to call printStackTrace(e) on the original
exception.
The result is attached as "stacktrace.txt".
Attached as "transcript.txt" is a listing of what happens in the shell
when I try to run XUpdate.java (the example from Developer's Guide).
I am new to Xindice so it is possible I am making some silly mistake.
I am happy to continue debugging this, but it would be helpful if someone
would point me in a particular direction...
thanks!
Jonathan Mark
DEBUG> jhm... here is a stack trace:
DEBUG>
java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMNodeIterator
at org.apache.xindice.core.xupdate.XObjectImpl.nodeset(Unknown Source)
at
org.xmldb.xupdate.lexus.commands.CommandObject.selectNodes(CommandObject.java:139)
at
org.xmldb.xupdate.lexus.commands.RemoveCommand.execute(RemoveCommand.java:97)
at org.apache.xindice.core.xupdate.XUpdateImpl.execute(Unknown Source)
at org.apache.xindice.core.xupdate.XUpdateImpl.execute(Unknown Source)
at
org.apache.xindice.core.xupdate.XUpdateQueryResolver$XUpdateQuery.execute(Unknown
Source)
at org.apache.xindice.core.xupdate.XUpdateQueryResolver.query(Unknown
Source)
at org.apache.xindice.core.query.QueryEngine.query(Unknown Source)
at org.apache.xindice.core.Collection.queryCollection(Unknown Source)
at
org.apache.xindice.client.corba.CollectionServant.queryCollection(Unknown
Source)
at org.apache.xindice.client.corba.db.CollectionPOA._invoke(Unknown
Source)
at org.openorb.adapter.poa.POA.dispatch(POA.java:975)
at
org.openorb.net.AbstractServerRequest.dispatch(AbstractServerRequest.java:750)
at
org.openorb.net.ServerManagerImpl.serve_request(ServerManagerImpl.java:1467)
at
org.openorb.net.ServerManagerImpl.thread_pool_main(ServerManagerImpl.java:1410)
at
org.openorb.net.ServerManagerImpl.access$200(ServerManagerImpl.java:77)
at
org.openorb.net.ServerManagerImpl$PoolThread.run(ServerManagerImpl.java:1557)
[EMAIL PROTECTED]:~/pm$ java -cp .:$CLASSPATH XUpdate
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 XUpdate.main(XUpdate.java:30)
XML:DB Exception occured 1 Query Processing Error