org.apache.camel.language.simple.types.SimpleIllegalSyntaxException

Solution Verified - Updated -

Issue

Receiving the error on deployment:

Caused by: org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: 
Binary operator == does not support token & at location 38

Expression:

        .choice().when(simple(" == true && ${body.actionType} == 'INSERT'}"))
            .throwException(new RuntimeException("Forced Exception: com.test.runtime.exception is set to true."))
        .end()

Environment

  • Red Hat Fuse
    • 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content