You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Alex Dettinger <al...@gmail.com> on 2020/06/16 09:23:21 UTC

Re: simple language bodyOneLine throws error

Hi Shiva,

  bodyOneLine was introduced since camel 3 onward,
https://issues.apache.org/jira/browse/CAMEL-13674.
Maybe it's time to get a ride at camel 3
https://camel.apache.org/manual/latest/camel-3-migration-guide.html ;)

Alex

On Tue, Jun 16, 2020 at 9:57 AM Gv, Shivakumar <sh...@lowes.com>
wrote:

> Hi team,
>
> I am trying to use camel simple expression bodyOneLine  for logging
> payload in single line. But it throws below error while starting the route.
>
> Camel version= 2.23.1
>
> Code:
> .log(org.apache.camel.LoggingLevel.INFO,"Request Received :
> ${bodyOneLine}")
>
>
> Error:
> Caused by:
> org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: Valid
> syntax: ${body.OGNL} was: bodyOneLine at location 19
>
> Thanks,
> Shiva
> ________________________________
> NOTICE: All information in and attached to the e-mails below may be
> proprietary, confidential, privileged and otherwise protected from improper
> or erroneous disclosure. If you are not the sender's intended recipient,
> you are not authorized to intercept, read, print, retain, copy, forward, or
> disseminate this message. If you have erroneously received this
> communication, please notify the sender immediately by phone (704-758-1000)
> or by e-mail and destroy all copies of this message electronic, paper, or
> otherwise. By transmitting documents via this email: Users, Customers,
> Suppliers and Vendors collectively acknowledge and agree the transmittal of
> information via email is voluntary, is offered as a convenience, and is not
> a secured method of communication; Not to transmit any payment information
> E.G. credit card, debit card, checking account, wire transfer information,
> passwords, or sensitive and personal information E.G. Driver's license,
> DOB, social security, or any other information the user wishes to remain
> confidential; To transmit only non-confidential information such as plans,
> pictures and drawings and to assume all risk and liability for and
> indemnify Lowe's from any claims, losses or damages that may arise from the
> transmittal of documents or including non-confidential information in the
> body of an email transmittal. Thank you.
>