From: José M. F. G. <jmf...@cn...> - 2008-06-19 19:03:38
|
Hi Alex, have you tried this variant? declare namespace transform="http://exist-db.org/xquery/transform"; let $x := <foo><bar>a</bar><bar>b</bar></foo> return transform:transform($x, "xmldb:exist:///alyx/tanelorn/copy.xsl", ()) alex wrote: > OK, fresh install (1.2.3-rev7866, java 1.6.0-06), no conf.xml or server.xml > tweaks whatsoever, and i'm still getting the errors (and they're still not > showing up in the logs). > > Query executed from sandbox: > > Error found > [at line 129, column 5] > XQuery Stack Trace sandbox:query(xs:string) 299:9 > Java Stack Trace: Class Name Method Name File Name Line > org.exist.xquery.functions.util.CatchFunction eval CatchFunction.java 108 > org.exist.xquery.InternalFunctionCall eval InternalFunctionCall.java 49 > org.exist.xquery .AbstractExpression eval AbstractExpression.java 59 > org.exist.xquery.PathExpr eval PathExpr.java 238 > org.exist .xquery.SequenceConstructor eval SequenceConstructor.java 74 > org.exist.xquery.AbstractExpression eval AbstractExpression.java 59 > org.exist.xquery.PathExpr eval PathExpr.java 238 > org.exist.xquery.UserDefinedFunction eval UserDefinedFunction.java 122 > org.exist.xquery.DynamicCardinalityCheck eval DynamicCardinalityCheck.java 71 > org.exist .xquery.DynamicTypeCheck eval DynamicTypeCheck.java 62 > org.exist.xquery.FunctionCall evalFunction FunctionCall.java 224 > org.exist.xquery.FunctionCall eval FunctionCall .java 162 > org.exist.xquery.AbstractExpression eval AbstractExpression.java 59 > org.exist.xquery.PathExpr eval PathExpr .java 238 > org.exist.xquery.ConditionalExpression eval ConditionalExpression.java 99 > org.exist.xquery.AbstractExpression eval AbstractExpression.java 59 > org.exist .xquery.PathExpr eval PathExpr.java 238 > org.exist.xquery.ConditionalExpression eval ConditionalExpression.java 101 > org.exist.xquery.AbstractExpression eval AbstractExpression .java 59 > org.exist.xquery.PathExpr eval PathExpr.java 238 > > > Query executed from java client: > > org.xmldb.api.base.XMLDBException: java.lang.NullPointerException > at > org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:109) > at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:70) > at > org.exist.xmldb.RemoteXPathQueryService.execute(RemoteXPathQueryService.java:404) > at org.exist.client.QueryDialog$QueryThread.run(QueryDialog.java:472) > Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.NullPointerException > at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457) > at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163) > at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:98) > ... 3 more > Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.NullPointerException > at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457) > at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163) > at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:98) > at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:70) > at > org.exist.xmldb.RemoteXPathQueryService.execute(RemoteXPathQueryService.java:404) > at org.exist.client.QueryDialog$QueryThread.run(QueryDialog.java:472) > > > This example is pretty much as simple as i can make it. If anyone at all on > the list has an example of an XQuery submitted via the REST interface that > successfully uses transform:transform where the xsl file is stored in the > database, i'd very much like to see it. > > --alex. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- "There is no reason why anybody would want a computer in their home" - Ken Olson, founder of DEC 1977 "640K ought to be enough for anybody" - Bill Gates, 1981 "Nobody will ever outgrow a 20Mb hard drive." - ??? "Premature optimization is the root of all evil." - Donald Knuth José María Fernández González Tlfn: (+34) 91 732 80 00 / 91 224 69 00 (ext 3061) e-mail: jmf...@cn... Fax: (+34) 91 224 69 76 Unidad del Instituto Nacional de Bioinformática Biología Estructural y Biocomputación Structural Biology and Biocomputing Centro Nacional de Investigaciones Oncológicas C.P.: 28029 Zip Code: 28029 C/. Melchor Fernández Almagro, 3 Madrid (Spain) **NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en su caso los ficheros adjuntos, pueden contener información protegida para el uso exclusivo de su destinatario. Se prohíbe la distribución, reproducción o cualquier otro tipo de transmisión por parte de otra persona que no sea el destinatario. Si usted recibe por error este correo, se ruega comunicarlo al remitente y borrar el mensaje recibido. **CONFIDENTIALITY NOTICE** This email communication and any attachments may contain confidential and privileged information for the sole use of the designated recipient named above. Distribution, reproduction or any other use of this transmission by any party other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender and delete all copies. |