You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org> on 2012/02/08 06:01:00 UTC

[jira] [Commented] (CAMEL-4988) Problems with Simple language

    [ https://issues.apache.org/jira/browse/CAMEL-4988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13203278#comment-13203278 ] 

Claus Ibsen commented on CAMEL-4988:
------------------------------------

Can you provide more details what you problem is?
                
> Problems with Simple language
> -----------------------------
>
>                 Key: CAMEL-4988
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4988
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.0
>         Environment: Standalone application with Spring context and routes defined in XML.
>            Reporter: Diego
>
> If you don't use a simple expresion that falls back to the SimpleBackwardsCompatibleParser, the simple language doesn't seem to work. If I override the start and end token with an explicit definition of the simplelanguage everything works well.
>   <bean id="simple" class="org.apache.camel.language.simple.SimpleLanguage">
>       <constructor-arg name="functionStartToken" value="${"/>
>       <constructor-arg name="functionEndToken" value="}"/>
>   </bean> 
> It seems that org.apache.camel.language.simple.SimpleExpressionParser.SimpleExpressionParser(String) fails to create an expression because startToken and endToken are "automagically" changed for strange Strings. It seems that when exchange.getContext().resolveLanguage("simple") tries to resolve the languaje it doesn't use the default construtor and injects a strange start and end token in the constructor SimpleLanguage(String functionStartToken, String functionEndToken).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira