From: Wolfgang M. <wol...@ex...> - 2012-09-01 16:33:55
|
Hi Adam, I just checked on a fresh install and the app which failed previously does now install ok. Maybe my development code was missing some updates. I'll keep an eye on this and report if I encounter the issue again. Thanks for looking into it. Wolfgang Am Samstag, 1. September 2012 um 17:55 schrieb Adam Retter: > Wolf, > > I have run the script that you provided. Apart from having to add in > the group of the admin user it all appears to run perfectly here. > > Could an already corrupt database result in eXist-db thinking that XML > documents are binary documents and reporting that to the > RestXqTrigger? > > Thanks Adam. > > On 31 August 2012 20:55, Adam Retter <ad...@ex... (mailto:ad...@ex...)> wrote: > > On 31 August 2012 20:43, Wolfgang Meier <wol...@ex... (mailto:wol...@ex...)> wrote: > > > Actually I'm getting different errors now when enabling restxq: > > > > > > Caused by: org.exist.extensions.exquery.restxq.impl.RestXqServiceCompilationException: Invalid document location for XQu > > > ery: /db/test/expath-pkg.xml > > > at org.exist.extensions.exquery.restxq.impl.RestXqTrigger.findServices(RestXqTrigger.java:123) > > > at org.exist.extensions.exquery.restxq.impl.RestXqTrigger.afterCreateDocument(RestXqTrigger.java:64) > > > at org.exist.collections.triggers.DocumentTriggersVisitor.afterCreateDocument(DocumentTriggersVisitor.java:84) > > > at org.exist.collections.Collection.storeXMLInternal(Collection.java:1359) > > > at org.exist.collections.Collection.store(Collection.java:1256) > > > at org.exist.xmldb.LocalCollection.storeXMLResource(LocalCollection.java:821) > > > ... 65 more > > > > > > > > > > > > expath-pkg.xml is neither a binary resource nor an XQuery!?! I don't understand why the RestXqTrigger is trying to compile it. Here's a small test query with which reproduces the issue for me (note that the db will be damaged after running this and has to be cleaned): > > > > The RestXqTrigger simply asks eXist two questions: > > > > 1) is this a binary document > > 2) does it have an xquery mimetype > > > > If both are not true then it will not compile the query. At the moment > > I suspect a bug deeper in eXist somewhere perhaps where its reporting > > the wrong document type. I will dig into it later this eve if I can. > > Im still in the office at the moment. > > > > > > -- > > Adam Retter > > > > eXist Developer > > { United Kingdom } > > ad...@ex... (mailto:ad...@ex...) > > irc://irc.freenode.net/existdb (http://irc.freenode.net/existdb) > > > > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... (mailto:ad...@ex...) > irc://irc.freenode.net/existdb (http://irc.freenode.net/existdb) |