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 (Jira)" <ji...@apache.org> on 2024/02/06 12:08:00 UTC

[jira] [Resolved] (CAMEL-20391) camel-core - All languages should support expression loaded from external resource

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

Claus Ibsen resolved CAMEL-20391.
---------------------------------
    Resolution: Fixed

> camel-core - All languages should support expression loaded from external resource
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-20391
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20391
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.4.0
>
>
> This is done if you use languages in Camel routes and created via reifiers. But if you do this manually then the resources is not loaded.
> For example with camel-jq you have error
>  Exception  m(ExpressionIllegalSyntaxException)  Illegal syntax: resource:file:template.jq
>  org.apache.camel.ExpressionIllegalSyntaxException: Illegal syntax: resource:file:template.jq
>  	at org.apache.camel.language.jq.JqExpression.init(JqExpression.java:77)
>  	at org.apache.camel.language.jq.JqLanguage.createExpression(JqLanguage.java:64)
>  	at org.apache.camel.support.SingleInputTypedLanguageSupport.createExpression(SingleInputTypedLanguageSupport.java:58)
>  	at org.apache.camel.support.SingleInputTypedLanguageSupport.createExpression(SingleInputTypedLanguageSupport.java:37)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)