Hi You need to quote the class name, eg <simple>${body} is 'au.edu.mq.ClassA'</simple>
On Mon, Apr 28, 2014 at 8:21 AM, damien <damien.c...@mq.edu.au> wrote: > Hi, > > The predict works fine in camel 2.8: > > <camel:choice> > <when> > <simple>${body} is > au.edu.mq.ClassA</simple> > <camel:convertBodyTo > type="au.edu.mq.ClassB" /> > </when> > </camel:choice> > > But when I upgrade to camel 2.12, it's getting error: > > Caused by: > org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: Binary > operator is does not support token a at location 11 > ${body} is au.edu.mq.ClassA > * > > if I do conversion straightway without choice/when, it works. It looks like > the message body is fine, but simple expression can't recognise > au.edu.mq.ClassA. > > What could be wrong here? > > Thanks > Damien > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/org-apache-camel-language-simple-types-SimpleIllegalSyntaxException-Binary-operator-is-does-not-supp1-tp5750642.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/