Thank you Claus, Best regards, Alex soto
> On Feb 28, 2016, at 1:30 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > > I logged a ticket > https://issues.apache.org/jira/browse/CAMEL-9653 > > On Sat, Feb 27, 2016 at 7:25 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: >> It was not designed primary to call utility methods, but methods on >> your existing message body and headers - where there is an instance. >> >> You are welcome to log a JIRA ticket to see if we can adjust it to use >> static methods only. >> http://camel.apache.org/support.html >> >> On Fri, Feb 26, 2016 at 11:07 PM, Alex Soto <alex.s...@envieta.com> wrote: >>> Hello, >>> >>> Running Camel 2.16.1, I am trying to invoke a static method as follows: >>> >>> <setHeader headerName="SCMS_MATCH_FILE_NAME"> >>> <method >>> beanType="org.apache.camel.util.StringHelper" >>> >>> method="removeLeadingAndEndingQuotes(${header.If-None-Match})" >>> /> >>> </setHeader> >>> >>> >>> However I get an exception with this message: >>> >>> Bean instance is null. OGNL bean expressions requires bean instances. >>> >>> Any idea why? >>> >>> Thanks and best regards, >>> Alex soto >>> >>> >>> >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2