osdir.com
mailing list archive

Subject: XML-RPC - EXistException: cannot read module source - msg#00131

List: text.xml.exist

Date: Prev Next Index Thread: Prev Next Index
Hi,
with XML-RPC I get the same error that I already reported for the jEdit XQuery adapter. It seems module loading is broken with XML-RPC. Note that the reported file path is wrong, it should be "U:\Programme\eXist-1.0\webapp\xquery\collections.xqm". When I put "/webapp/xquery/collections.xqm" into the "at" clause, I get the same exception which reports the correct path.

Or am I doing something wrong? What should be put into the "at" clause for *.xqm files? Error report and query string below.

Thanks,
Martin

connecting to http://guest:guest@localhost:8080/exist/xmlrpc...
An error occurred: org.exist.EXistException: cannot read module source from file at U:\Programme\eXist-1.0\collections.xqm [at line 3, column 1]
org.exist.xquery.XPathException: cannot read module source from file at U:\Programme\eXist-1.0\collections.xqm [at line 3, column 1]
at org.exist.xquery.XQueryContext.importModule(XQueryContext.java:918)
at org.exist.xquery.parser.XQueryTreeParser.prolog(XQueryTreeParser.java:2824)
at org.exist.xquery.parser.XQueryTreeParser.module(XQueryTreeParser.java:2371)
at org.exist.xquery.parser.XQueryTreeParser.xpath(XQueryTreeParser.java:2226)
at org.exist.xquery.XQuery.compile(XQuery.java:88)
at org.exist.xquery.XQuery.compile(XQuery.java:69)
at org.exist.xmlrpc.RpcConnection.doQuery(RpcConnection.java:260)
at org.exist.xmlrpc.RpcConnection.query(RpcConnection.java:1205)
at org.exist.xmlrpc.RpcServer.query(RpcServer.java:832)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.exist.xmlrpc.AuthenticatedHandler.execute(AuthenticatedHandler.java:116)
at org.exist.xmlrpc.AuthenticatedHandler.execute(AuthenticatedHandler.java:63)
at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:128)
at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:185)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:151)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139)
at org.exist.xmlrpc.RpcServlet.doPost(RpcServlet.java:39)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:293)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
at org.mortbay.http.HttpServer.service(HttpServer.java:875)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:202)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
at java.lang.Thread.run(Thread.java:534)

The query was:

xquery version "1.0";
import module namespace utils="http://exist-db.org/xquery/collection-utils";
at "collections.xqm";
1


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

fn:doc() does not work "stand-alone"

Hi, issuing doc('/db/<yourdoc>') on an existing document with a valid URI and without any further location steps results in an exception thrown on the server side and does not return the expected result (i.e., the doc). Possible patch: in org.exist.xmlrpc.RpcConnection.retrieve(User, int, int, Hashtable) replace line 1417 with if(Type.subTypeOf(item.getType(), Type.DOCUMENT)) { return getDocument(user, ((NodeProxy)item).getDoc().getName(), parameters); } else if(Type.subTypeOf(item.getType(), Type.NODE)) { ... By the way, this class has much duplicate code, which should be subject to some refactorings (for instance the retrieve(), setPermissions(), summary() methods look pretty similar to me). Regards, Erik -- ________________________________________________________________________ Dipl.-Inf. Erik Behrends mailto:behrends@xxxxxxxxxxxxxxxxxxxxxxxxxxxx Institute for Informatics http://www.ifi.informatik.uni-goettingen.de Georg-August-Universitaet Goettingen Phone: +49 551 39 14680 Lotzestr. 16-18 Mobile: +49 162 8684146 D-37083 Goettingen, Germany Fax: +49 551 39 14415 ________________________________________________________________________ ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl

Next Message by Date: click to view message preview

Re: XML-RPC - EXistException: cannot read module source

with XML-RPC I get the same error that I already reported for the jEdit XQuery adapter. It seems module loading is broken with XML-RPC. Note that the reported file path is wrong, it should be "U:\Programme\eXist-1.0\webapp\xquery\collections.xqm". When I put "/webapp/xquery/collections.xqm" into the "at" clause, I get the same exception which reports the correct path. Or am I doing something wrong? What should be put into the "at" clause for *.xqm files? Error report and query string below. The *.xqm files are resolved relative to $EXIST_HOME. The following works from jEdit: xquery version "1.0"; import module namespace utils="http://exist-db.org/xquery/collection-utils" at "webapp/xquery/collections.xqm"; 1 Wolfgang ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl

Previous Message by Thread: click to view message preview

fn:doc() does not work "stand-alone"

Hi, issuing doc('/db/<yourdoc>') on an existing document with a valid URI and without any further location steps results in an exception thrown on the server side and does not return the expected result (i.e., the doc). Possible patch: in org.exist.xmlrpc.RpcConnection.retrieve(User, int, int, Hashtable) replace line 1417 with if(Type.subTypeOf(item.getType(), Type.DOCUMENT)) { return getDocument(user, ((NodeProxy)item).getDoc().getName(), parameters); } else if(Type.subTypeOf(item.getType(), Type.NODE)) { ... By the way, this class has much duplicate code, which should be subject to some refactorings (for instance the retrieve(), setPermissions(), summary() methods look pretty similar to me). Regards, Erik -- ________________________________________________________________________ Dipl.-Inf. Erik Behrends mailto:behrends@xxxxxxxxxxxxxxxxxxxxxxxxxxxx Institute for Informatics http://www.ifi.informatik.uni-goettingen.de Georg-August-Universitaet Goettingen Phone: +49 551 39 14680 Lotzestr. 16-18 Mobile: +49 162 8684146 D-37083 Goettingen, Germany Fax: +49 551 39 14415 ________________________________________________________________________ ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl

Next Message by Thread: click to view message preview

Re: XML-RPC - EXistException: cannot read module source

with XML-RPC I get the same error that I already reported for the jEdit XQuery adapter. It seems module loading is broken with XML-RPC. Note that the reported file path is wrong, it should be "U:\Programme\eXist-1.0\webapp\xquery\collections.xqm". When I put "/webapp/xquery/collections.xqm" into the "at" clause, I get the same exception which reports the correct path. Or am I doing something wrong? What should be put into the "at" clause for *.xqm files? Error report and query string below. The *.xqm files are resolved relative to $EXIST_HOME. The following works from jEdit: xquery version "1.0"; import module namespace utils="http://exist-db.org/xquery/collection-utils" at "webapp/xquery/collections.xqm"; 1 Wolfgang ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by