camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Soto <alex.s...@envieta.com>
Subject Re: Unknown File Language Syntax
Date Wed, 24 Feb 2016 15:13:17 GMT
Sorry,  I am using Camel 2.16.0

Do you mean, like this?

<pollEnrich timeout="5000">
   <constant>file:{{env:HOME}}/.ra/chains?autoCreate=false&amp;noop=true&amp;idempotent=false</constant>
 
</pollEnrich>


My intention is to have {{env:HOME}}  substituted with the home directory at runtime


Best regards,
Alex soto




> On Feb 24, 2016, at 10:09 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> 
> Use <constant>
> 
> But what version of Camel are you using?
> 
> On Wed, Feb 24, 2016 at 4:04 PM, Alex Soto <alex.soto@envieta.com> wrote:
>> Hello:
>> 
>> Anybody can tell me what is wrong with this?
>> 
>> 
>> <pollEnrich timeout="5000">
>>   <simple>file:{{env:HOME}}/.ra/chains?autoCreate=false&amp;noop=true&amp;idempotent=false</simple>
>> </pollEnrich>
>> 
>> 
>> I am getting this exception:
>> 
>> 
>> Caused by: org.apache.camel.language.simple.types.SimpleParserException: Unknown
file language syntax: /Users/asoto/.ra/chains?autoCreate=false&noop=true&idempotent=false
>>        at org.apache.camel.language.simple.ast.SimpleFunctionExpression.createSimpleFileExpression(SimpleFunctionExpression.java:409)
>>        at org.apache.camel.language.simple.ast.SimpleFunctionExpression.createSimpleExpression(SimpleFunctionExpression.java:144)
>>        at org.apache.camel.language.simple.ast.SimpleFunctionExpression.createExpression(SimpleFunctionExpression.java:55)
>>        at org.apache.camel.language.simple.SimpleBackwardsCompatibleParser.doParseExpression(SimpleBackwardsCompatibleParser.java:72)
>>        at org.apache.camel.language.simple.SimpleBackwardsCompatibleParser.parseExpression(SimpleBackwardsCompatibleParser.java:47)
>>        at org.apache.camel.language.simple.SimpleLanguage.createExpression(SimpleLanguage.java:127)
>>        at org.apache.camel.language.simple.SimpleLanguage.createExpression(SimpleLanguage.java:160)
>>        at org.apache.camel.builder.SimpleBuilder.createExpression(SimpleBuilder.java:107)
>>        ... 85 more
>> 
>> 
>> 
>> Best regards,
>> Alex soto
>> 
>> 
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message