You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Tomáš Záluský (JIRA)" <ji...@apache.org> on 2016/07/18 14:47:20 UTC

[jira] [Updated] (CAMEL-10156) arguments of ignored if syntax error in method call

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

Tomáš Záluský updated CAMEL-10156:
----------------------------------
    Description: 
I have route definition with following BeanProcessor call:
{noformat}
<bean ref="service" method="method(${header.foo},${header.hoo}))" />
{noformat}
Note syntax error at the end - one more right parenthesis.
Parameters foo and hoo are present in exchange headers.

In Camel 2.17.1, method is invoked with (null,null) because the parameters are not recognized in ObjectHelper.betweenOuterPair method.

In Camel 2.14.1 (from which we migrated recently), extra parenthesis is ignored and parameters are parsed correctly in ObjectHelper.between method.

I will certainly fix my syntax error, though I would really appreciate either 2.14.1-behavior or rather fail fast just on route construction during Spring webapp initialization.

Thanks!

  was:
I have route definition with following BeanProcessor call:
{noformat}
<bean ref="service" method="method(${header.foo},${header.hoo}))" />
{noformat}
Note syntax error at the end - one more right parenthesis.
Parameters foo and hoo are present in exhange headers.

In Camel 2.17.1, method is invoked with (null,null) because the parameters are not recognized in ObjectHelper.betweenOuterPair method.

In Camel 2.14.1 (from which we migrated recently), extra parenthesis is ignored and parameters are parsed correctly in ObjectHelper.between method.

I will certainly fix my syntax error, though I would really appreciate either 2.14.1-behavior or rather fail fast just on route construction during Spring webapp initialization.

Thanks!


> arguments of <bean method> ignored if syntax error in method call
> -----------------------------------------------------------------
>
>                 Key: CAMEL-10156
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10156
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.17.1
>            Reporter: Tomáš Záluský
>
> I have route definition with following BeanProcessor call:
> {noformat}
> <bean ref="service" method="method(${header.foo},${header.hoo}))" />
> {noformat}
> Note syntax error at the end - one more right parenthesis.
> Parameters foo and hoo are present in exchange headers.
> In Camel 2.17.1, method is invoked with (null,null) because the parameters are not recognized in ObjectHelper.betweenOuterPair method.
> In Camel 2.14.1 (from which we migrated recently), extra parenthesis is ignored and parameters are parsed correctly in ObjectHelper.between method.
> I will certainly fix my syntax error, though I would really appreciate either 2.14.1-behavior or rather fail fast just on route construction during Spring webapp initialization.
> Thanks!



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