Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10529

The "exchange" keyword in LogEIP was incorrectly evaluated as a Camel Exchange type even without "${ }"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.17.0
    • None
    • camel-language
    • None
    • Unknown

    Description

      I have a very simple camel route:

      <camelContext id="camel" xmlns="http://camel.apache.org/schema/blueprint">
              <route>
                  <from uri="timer://foo?delay=2s&amp;repeatCount=2"/>
                  <setBody>
                      <constant>hello Camel!</constant>
                  </setBody>
                  <log message="exchange is triggered"/>
              </route>
          </camelContext>
      

      Then I am getting the following error:

      16:09:32,724 | WARN | #3 - timer://foo | TimerConsumer | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630187 | Error processing exchange. Exchange[ID-jluomac-54194-1480090135878-3-4]. Caused by: [org.apache.camel.RuntimeCamelException - org.apache.camel.component.bean.MethodNotFoundException: Method with name: is triggered not found on bean: Exchange[ID-jluomac-54194-1480090135878-3-4] of type: org.apache.camel.impl.DefaultExchange]
      org.apache.camel.RuntimeCamelException: org.apache.camel.component.bean.MethodNotFoundException: Method with name: is triggered not found on bean: Exchange[ID-jluomac-54194-1480090135878-3-4] of type: org.apache.camel.impl.DefaultExchange
      

      It looks like it was incorrectly evaluated as a Camel Exchange type for some reason.
      Furthermore, it is only causing the problem when it is in the beginning of the LogEIP message. If it is not, it works fine. For instance, following line will cause problem:

      <log message="exchange is triggered"/>
      

      But this will work:

      <log message="The exchange is triggered"/>
      

      As long as you are not placing the keyword "exchange" in the beginning of the LogEIP message, it will be fine.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              joeluo Joe Luo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: