camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Atia <>
Subject RE: [jira] [Created] (CAMEL-4647) Simple expression does not find method toString()
Date Wed, 09 Nov 2011 09:56:33 GMT

What is the difference between ? 

<simple>${bodyAs(String)} contains 'CommandResponseData'</simple>


<simple>${body.toString} contains 'CommandResponseData'</simple>  which you raise
JIRA Camel 4647 for it ?

Omar Atia

-----Original Message-----
From: Roman Stumm (Created) (JIRA) [] 
Sent: Tuesday, November 08, 2011 7:38 PM
Subject: [jira] [Created] (CAMEL-4647) Simple expression does not find method toString()

Simple expression does not find method toString()

                 Key: CAMEL-4647
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.8.0
         Environment: camel 2.8.0
            Reporter: Roman Stumm

In a route builder, we have a log definition: 


The body contains an object, that implements a public toString() method. But the problem is,
that the simple-expression does not find the method toString() and route processing stops
without throwing an exception.

The funny thing is, that when we just rename the method, e.g. toInfoString(), then it works:

Why does simple expression have a problem with a method named "toString"?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:

View raw message