You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Karts <ka...@gmail.com> on 2015/05/23 02:28:11 UTC
Camel XQuery 3.0
Hi,
I would like to use the group by functionality provided with XQuery 3.0,
along with some other features.
Even though Camel 2.15.2 seems to be using Saxon 9.5.1-5 HE which supports
XQuery 3.0, I'm getting this exception:
Caused by: net.sf.saxon.trans.XPathException: 'group by' is not supported in
XQuery 1.0
at net.sf.saxon.query.QueryParser.grumble(QueryParser.java:453)
at
net.sf.saxon.expr.parser.ExpressionParser.grumble(ExpressionParser.java:226)
at
net.sf.saxon.expr.parser.ExpressionParser.grumble(ExpressionParser.java:213)
at net.sf.saxon.query.QueryParser.parseGroupByClause(QueryParser.java:2389)
at
net.sf.saxon.query.QueryParser.parseFLWORExpression(QueryParser.java:2091)
at
net.sf.saxon.expr.parser.ExpressionParser.parseExprSingle(ExpressionParser.java:499)
at
net.sf.saxon.expr.parser.ExpressionParser.parseExpression(ExpressionParser.java:464)
at net.sf.saxon.query.QueryParser.parseQuery(QueryParser.java:365)
at
net.sf.saxon.query.QueryParser.makeXQueryExpression(QueryParser.java:168)
at
net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:526)
at
org.apache.camel.component.xquery.XQueryBuilder$1.createQueryExpression(XQueryBuilder.java:242)
at
org.apache.camel.component.xquery.XQueryBuilder.initialize(XQueryBuilder.java:660)
at
org.apache.camel.component.xquery.XQueryBuilder.evaluateAsString(XQueryBuilder.java:198)
at
org.apache.camel.component.xquery.XQueryBuilder.evaluate(XQueryBuilder.java:120)
... 92 more
Digging further, it seems XQuery 3.0 needs to be explicitly enabled with
Saxon.
Is there any way I can do this, or a possible workaround?
Thanks
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XQuery-3-0-tp5767434.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel XQuery 3.0
Posted by Karts <ka...@gmail.com>.
Thanks, I have created JIRA CAMEL-8830
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XQuery-3-0-tp5767434p5767843.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel XQuery 3.0
Posted by Christian Müller <ch...@gmail.com>.
Feel free to raise a JIRA and request the upgrade to Saxon 9.6.
Best,
Christian
-----------------
Software Integration Specialist
Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Wed, May 27, 2015 at 11:55 PM, Karts <ka...@gmail.com> wrote:
> In fact it looks like XQuery 3.0 isn't supported in Saxon HE 9.5. It is the
> default on 9.6 but that doesn't seem compatible with the current
> implementation of XQueryBuilder:
>
> Caused by: java.lang.NoSuchMethodError:
> net.sf.saxon.Configuration.setHostLanguage(I)V
> at
>
> org.apache.camel.component.xquery.XQueryBuilder.initialize(XQueryBuilder.java:641)
> at
>
> org.apache.camel.component.xquery.XQueryBuilder.evaluateAsString(XQueryBuilder.java:198)
> at
>
> org.apache.camel.component.xquery.XQueryBuilder.evaluate(XQueryBuilder.java:120)
> at
>
> org.apache.camel.component.xquery.XQueryBuilder.evaluate(XQueryBuilder.java:110)
> at
>
> org.apache.camel.processor.SetBodyProcessor.process(SetBodyProcessor.java:47)
> at
>
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
> at
>
> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
> ... 88 more
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-XQuery-3-0-tp5767434p5767575.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: Camel XQuery 3.0
Posted by Karts <ka...@gmail.com>.
In fact it looks like XQuery 3.0 isn't supported in Saxon HE 9.5. It is the
default on 9.6 but that doesn't seem compatible with the current
implementation of XQueryBuilder:
Caused by: java.lang.NoSuchMethodError:
net.sf.saxon.Configuration.setHostLanguage(I)V
at
org.apache.camel.component.xquery.XQueryBuilder.initialize(XQueryBuilder.java:641)
at
org.apache.camel.component.xquery.XQueryBuilder.evaluateAsString(XQueryBuilder.java:198)
at
org.apache.camel.component.xquery.XQueryBuilder.evaluate(XQueryBuilder.java:120)
at
org.apache.camel.component.xquery.XQueryBuilder.evaluate(XQueryBuilder.java:110)
at
org.apache.camel.processor.SetBodyProcessor.process(SetBodyProcessor.java:47)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)
... 88 more
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XQuery-3-0-tp5767434p5767575.html
Sent from the Camel - Users mailing list archive at Nabble.com.