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

Raymond commented on CAMEL-24585:
---------------------------------

I think in this case there is no StackTrace. Take the following code:


{code:java}
LanguageValidationResult result = isPredicate
        ? catalog.validateLanguagePredicate(ClassLoader.getSystemClassLoader(), 
expression.getLanguage(), expression.getExpression())
        : 
catalog.validateLanguageExpression(ClassLoader.getSystemClassLoader(), 
expression.getLanguage(), expression.getExpression());


expression.setValid(result.isSuccess());
if (!result.isSuccess()) {
    expression.setMessage(result.getError());
} {code}

The LanguageValidationResult always returns and I get the error from the 
getError() method, I don't see any stacktrace in the log, and can't find a 
stackTrace() method.

> The catalog validateLanguageExpression returns an invoke error when using 
> jsonpath in a simple expression
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24585
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24585
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-catalog
>    Affects Versions: 4.22.0
>            Reporter: Raymond
>            Priority: Minor
>
> I ran the following validation statement:
> {code:java}
> LanguageValidationResult result =
>     catalog.validateLanguageExpression(
>         ClassLoader.getSystemClassLoader(),
>         "simple",
>         "${jsonpath($.foo)}"
>     ); {code}
> In 4.10.9 this passes, but in 4.22.0 I get:
> {code:java}
> Cannot invoke \"org.apache.camel.TypeConverter.convertTo(java.lang.Class, 
> Object)\" because the return value of 
> \"org.apache.camel.CamelContext.getTypeConverter()\" is null {code}
> If I use a regular simple expression like:
> {code:java}
> ${header.foo}
> ${bodyAs(String)} {code}
> There are no issues
>  



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

Reply via email to