Problems with the xmldb-delete processor

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems with the xmldb-delete processor

teppen
Hi.
I try to delete an element in a collection in my exist-db, but the xmldb-processor seems to ignore the collection attribute and looks for the file in /db

Here is the first few lines in the stack trace:
org.apache.xmlrpc.XmlRpcException: org.exist.EXistException: Document /db/customers.xml_1.3.1.21.5.5 not found
        at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
        at org.exist.xmldb.RemoteCollection.removeResource(RemoteCollection.java:442)
        at org.orbeon.oxf.processor.xmldb.XMLDBProcessor.delete(XMLDBProcessor.java:409)
        at org.orbeon.oxf.processor.xmldb.XMLDBProcessor.executeOperation(XMLDBProcessor.java:426)
        at org.orbeon.oxf.processor.xmldb.XMLDBDeleteProcessor.start(XMLDBDeleteProcessor.java:30)
        at org.orbeon.oxf.processor.pipeline.PipelineProcessorrun(PipelineProcessor.java:644)
        at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
        at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:641)
        at org.orbeon.oxf.processor.pipeline.PipelineProcessorgetInput(PipelineProcessor.java:136)

I searched the forum and found some older threads with the exact same problem. In this post, http://orbeon-forms-ops-users.24843.n4.nabble.com/xmldb-delete-getting-wrong-path-tp43359p277358.html Eric Bruchez says the bug has been fixed. I use Orbeon Forms 3.8 CE and a remote exist-db, so the bug seems to still be there.

Does anybody have a solution for this? A workaround maybe?

-Tommy Skarateppen
Reply | Threaded
Open this post in threaded view
|

Re: Problems with the xmldb-delete processor

Alessandro  Vernet
Administrator
Tommy,

The xmldb-delete processor is sort-of deprecated; is there a chance
you can instead send a query to eXist through the REST API, with an
<xforms:submission>, either directly in XForms, or with the XForms
submission processor if you are in XPL? You'll find more on the XForms
submission processor at:

http://www.orbeon.com/orbeon/doc/processors-submission

Alex

On Tue, Aug 10, 2010 at 2:19 AM, teppen <[hidden email]> wrote:

>
> Hi.
> I try to delete an element in a collection in my exist-db, but the
> xmldb-processor seems to ignore the collection attribute and looks for the
> file in /db
>
> Here is the first few lines in the stack trace:
> org.apache.xmlrpc.XmlRpcException: org.exist.EXistException: Document
> /db/customers.xml_1.3.1.21.5.5 not found
>        at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457)
>        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
>        at
> org.exist.xmldb.RemoteCollection.removeResource(RemoteCollection.java:442)
>        at
> org.orbeon.oxf.processor.xmldb.XMLDBProcessor.delete(XMLDBProcessor.java:409)
>        at
> org.orbeon.oxf.processor.xmldb.XMLDBProcessor.executeOperation(XMLDBProcessor.java:426)
>        at
> org.orbeon.oxf.processor.xmldb.XMLDBDeleteProcessor.start(XMLDBDeleteProcessor.java:30)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessorrun(PipelineProcessor.java:644)
>        at
> org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:641)
>        at
> org.orbeon.oxf.processor.pipeline.PipelineProcessorgetInput(PipelineProcessor.java:136)
>
> I searched the forum and found some older threads with the exact same
> problem. In this post,
> http://orbeon-forms-ops-users.24843.n4.nabble.com/xmldb-delete-getting-wrong-path-tp43359p277358.html
> Eric Bruchez says the bug has been fixed. I use Orbeon Forms 3.8 CE and a
> remote exist-db, so the bug seems to still be there.
>
> Does anybody have a solution for this? A workaround maybe?
>
> -Tommy Skarateppen
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Problems-with-the-xmldb-delete-processor-tp2319522p2319522.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Problems with the xmldb-delete processor

teppen
Ok. Thanks for the reply. I'll try the REST API with the submission processor.

-Tommy