[ https://issues.apache.org/jira/browse/CAMEL-6687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756168#comment-13756168 ]
Anton Koscejev commented on CAMEL-6687: --------------------------------------- No, thank you for fixing it. I'm always impressed how fast these are fixed. :) Looking forward to 2.12... > Using simple language OGNL expressions doesn't work for Bean Binding when a > field is null > ----------------------------------------------------------------------------------------- > > Key: CAMEL-6687 > URL: https://issues.apache.org/jira/browse/CAMEL-6687 > Project: Camel > Issue Type: Bug > Components: bean-integration, camel-core > Affects Versions: 2.11.1 > Reporter: Anton Koscejev > Assignee: Claus Ibsen > Labels: bean, method, ognl, simple > Fix For: 2.11.2, 2.12.0 > > Attachments: CamelBeanMethodOgnlFieldTest.java > > > The following functionality doesn't work, when one of the fields is null: > http://camel.apache.org/bean-binding.html > {quote} > You can also use the OGNL support of the Simple expression language. Now > suppose the message body is an object which has a method named asXml. To > invoke the asXml method we can do as follows: > {code}.bean(OrderService.class, "doSomething(${body.asXml}, > ${header.high})"){code} > Instead of using .bean as shown in the examples above, you may want to use > .to instead as shown: > {code}.to("bean:orderService?method=doSomething(${body.asXml}, > ${header.high})"){code} > {quote} > A test case is provided. Instead of getting values of fields "foo" and "bar" > respectively, the first parameter (which should be null) receives value of > pojo.toString(), while the second parameter receives the correct value. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira