camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tesla <>
Subject camel groovy error.
Date Tue, 07 Jul 2015 08:49:53 GMT
Hi I am facing a strange problem. I have some groovy code like that:

import org.apache.camel.model.language.JsonPathExpression;
import org.apache.camel.impl.DefaultExchange;

String endUserId = new
exchange.setProperty("endUserId", endUserId);

It simply tries to find what is the endUserId from message body. But
sometimes camel is starting to throw this exception :

EXCEPTION groovy.lang.GroovyRuntimeException: Ambiguous method overloading
for method org.apache.camel.model.language
Cannot resolve which method to invoke for [class
org.apache.camel.impl.DefaultExchange, class java.lang.Class] due to
overlapping prototypes 
        [interface org.apache.camel.Exchange, class java.lang.Class]
        [interface org.apache.camel.Exchange, class
java.lang.Class]\ngroovy.lang.GroovyRuntimeException: Ambiguous method
overloading for me
thod org.apache.camel.model.language.JsonPathExpression#evaluate.\nCannot
resolve which method to invoke for [class org.apache.camel.impl.Def
aultExchange, class java.lang.Class] due to overlapping prototypes
between:\n   [interface org.apache.camel.Exchange, class java.lang.Class]\
n       [interface org.apache.camel.Exchange, class java.lang.Class]\n  at
ava:3031)\n     at
at groovy.lang.MetaClassImpl.chooseMethod(Met\n at
at groovy.lang.MetaClassImpl.
createPojoCallSite(\n   at
n       at

at org.codehaus.groovy.runtime.callsi
te.CallSiteArray.defaultCall(\n   at

I am using camel 2.13 and groovy-2.2.2. What I am doing wrong?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message