Hi Sounds like some spring or blueprint property placeholder gets involved. Though hard to tell without the stacktrace and more details.
However see the simple page about alternative syntax you can use to fix this. On Tue, Jul 14, 2015 at 12:48 PM, Vijay Tolani <vijay.tol...@morganstanley.com> wrote: > Currently I am using the below code on camel 2.9.0. > > <choice> > <when> > <simple>${in.body?.documentData?.isToBeProcessed} == > 'true' and ${in.body?.documentData?.status} == 'Deleted'</simple> > <setHeader headerName="NOTIFICATION_TYPE"> > <constant>DOCUMENT_STATUS_DELETED</constant> > </setHeader> > <bean ref="documentNotificationBuilder" > method="addNotification" /> > </when> > > After migrating to 2.15.1 , the same expression is not working and it throws > java.lang.IllegalArgumentException: Property with key > [in.body?.documentData?.isToBeProcessed] not found in properties from text: > ${in.body?.documentData?.isToBeProcessed} == 'true' . > > I found a similar issue reported on thread > http://camel.465427.n5.nabble.com/Issue-with-camel-lt-el-gt-in-Camel-2-12-0-td5740188.html. > However when I tried the same like below , it still isn't working and fails > with Parse Exception. > > <choice> > *<when>simple${in.body?.documentData?.isToBeProcessed} == > 'true'* > <setHeader headerName="NOTIFICATION_TYPE"> > <constant>DOCUMENT_STATUS_SUSPEND_COVER</constant> > </setHeader> > <bean ref="documentNotificationBuilder" > method="addNotification" /> > </when> > <otherwise /> > </choice> > > Appreciate any help on this > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Issue-with-simple-after-migrating-from-2-9-0-to-2-15-1-tp5769278.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/