Using the run button on /dba/queries seems broken for me in recent 8.4 builds. Regardless of the query. The console shows: TypeError: Not enough arguments to Document.evaluate.
Ctrl-enter works fine.
/Andy
On 2 January 2016 at 21:53, Eric Boisvert denevers1649@gmail.com wrote:
I installed your new version (BaseX84-20160101.192044.war http://files.basex.org/releases/latest/BaseX84-20160101.192044.war) , but now the web interface has a javascript error (runs ok when I access the REST service for instance)
I'm on /BaseX/dba/queries
running this query
import module namespace geo = "http://expath.org/ns/geo"; declare namespace gml='http://www.opengis.net/gml';
let $point := gml:Pointgml:coordinates1,2</gml:coordinates></gml:Point> return geo:geometry-type($point)
and I get this error (in Chrome javascript console using debug tools)
Uncaught TypeError: Failed to execute 'evaluate' on 'Document': 2 arguments required, but only 0 present. onclick @ queries:39
Permission is set to "admin" (but same issue with "none")
Sorry If I'm doing something dumb - I'm learning.
2016-01-01 15:45 GMT-05:00 Christian Grün christian.gruen@gmail.com:
Hi Eric,
The error message indicates that you have run the XQuery expression from the DBA query panel. You’ll probably have to assign "admin" permissions via the "Settings" panel to successfully run the query.
The issues you have encountered shouldn’t appear with the latest 8.4 snapshot anymore [1]: Just recently, we have revised error messages of failed Java function calls; beside that, the Geo Module is not restricted to Admin users anymore, but can be called from everyone.
Hope this helps, Christian
[1] http://files.basex.org/releases/latest
On Thu, Dec 31, 2015 at 8:57 PM, Eric Boisvert denevers1649@gmail.com wrote:
Greetings
I just downloaded BaseX 8.3.1 .war and installed it on Tomcat 7
(jre1.8.0_66) running Windows 7. enterprise (SP1).
Did nothing (just loaded a single XML file) throught the web based
admin interface and tried this XQuery
import module namespace geo = "http://expath.org/ns/geo"; declare namespace gml='http://www.opengis.net/gml';
let $point :=
gml:Pointgml:coordinates1,2</gml:coordinates></gml:Point>
return geo:geometry-type($point)
(it's from Geo Module documentation at
http://docs.basex.org/wiki/Geo_Module#geo:geometry-type)
all I get is [XPST0017] Unknown function 'geo:geometry-type'.
in the logs, I have
[POST]
http://localhost:8080/BaseX831/dba/eval-query?name=&resource=&sort=&...; Stopped at C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/BaseX831/dba/modules/util.xqm, 94/17: [XPST0017] Unknown function 'geo:geometry-type'.
The java Geo.class are present
(webapps\BaseX831\WEB-INF\classes\org\expath\ns)
Other trivial XQuery do work
Any idea what's wrong ?
Thanks and Happy New Year