You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ralf Steppacher (JIRA)" <ji...@apache.org> on 2016/12/30 13:14:58 UTC

[jira] [Updated] (CAMEL-10664) SimpleIllegalSyntaxException in nested expression

     [ https://issues.apache.org/jira/browse/CAMEL-10664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralf Steppacher updated CAMEL-10664:
------------------------------------
    Description: 
The following nested simple expression works in Camel 2.16.3:

{code:xml}
<log message="TX name: '${exchangeProperty.${type:ch.my.package.StringConstants.EXCHANGE_PROP_TX_SUMMARY}.transactionName}'" loggingLevel="INFO" logName="pep-xds_b-registry_oncompletion_common" />
{code}

but fails with a SimpleIllegalSyntaxException in Camel 2.18.1:

{noformat}
Exception: org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: expected symbol functionEnd but was eol at location 8
${type:ch
        *

{noformat}

Both simple expressions work when invoked in a non-nested fashion.

  was:
The following nested simple expression works in Camel 2.16.3:

{code:xml}
<log message="TX name: '${exchangeProperty.${type:ch.my.package.StringConstants.EXCHANGE_PROP_TX_SUMMARY}.transactionName}'" loggingLevel="INFO" logName="pep-xds_b-registry_oncompletion_common" />
{code}

but fails with a SimpleIllegalSyntaxException in Camel 2.18.1:

{noformat}
Exception: org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: expected symbol functionEnd but was eol at location 8
${type:ch
        *

{noformat}


> SimpleIllegalSyntaxException in nested expression
> -------------------------------------------------
>
>                 Key: CAMEL-10664
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10664
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.18.1
>            Reporter: Ralf Steppacher
>
> The following nested simple expression works in Camel 2.16.3:
> {code:xml}
> <log message="TX name: '${exchangeProperty.${type:ch.my.package.StringConstants.EXCHANGE_PROP_TX_SUMMARY}.transactionName}'" loggingLevel="INFO" logName="pep-xds_b-registry_oncompletion_common" />
> {code}
> but fails with a SimpleIllegalSyntaxException in Camel 2.18.1:
> {noformat}
> Exception: org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: expected symbol functionEnd but was eol at location 8
> ${type:ch
>         *
> {noformat}
> Both simple expressions work when invoked in a non-nested fashion.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)