camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf Steppacher (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-10664) SimpleIllegalSyntaxException in nested expression
Date Fri, 30 Dec 2016 13:14:58 GMT

     [ 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)

Mime
View raw message