Here is the link to the bug tracker on source forge for JUEL: https://sourceforge.net/tracker/?func=detail&aid=2779833&group_id=165179&atid=834616
Cheers, Yc ychawla wrote: > > Hello All, > I am trying to evaluate a header in Camel 1.6.0 using EL expressions. > Here is my expression: > > <filter> > <el>${in.headers['MyHeader'].startsWith('fooBar')}</el> > <setHeader > headerName="someHeader"><constant>false</constant></setHeader> > </filter> > > When I run this, I get an exception: > > javax.el.MethodNotFoundException: Cannot resolve method 'startsWith' in > 'class java.lang.String' > > I looked up this forum post by James Strachan: > http://www.nabble.com/How-do-I-get-a-Content-Based-Router-configured-in-XML-with-ActiveMQ--td15339501.html#a15707041 > > James suggested downloading the code and using this test: > JuelLanguageTest. In testElPredicates method, I added this assertion: > > assertPredicate("${in.headers['MyHeader'].startsWith('fooBar')}"); > > and in ExchangeTestSupport I added this header: > > in.setHeader("MyHeader", "fooBarber"); > > Any idea why this would work in Java, but I would get the EL expression in > a spring route? > > Thanks, > Yogesh > -- View this message in context: http://www.nabble.com/Camel-JUEL-expression-weirdness-in-1.6.0-tp23177119p23199368.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.