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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.