lburgazzoli commented on pull request #2536:
URL: https://github.com/apache/camel-k/pull/2536#issuecomment-889857056
> > >
> > > Yes, I've noticed the build time increases by a couple of minutes. I
agree the `--language:js` build configuration should only be added for the JS
DSL. I'm doing a bunch of preliminary tests to sample the space, before working
on the complete implementation. I've also noticed some issues with the YAML
DSL, like with `simple: "${body.toUpperCase()}"`. I'll report them here.
> >
> >
> > Yeah, this could be because the type of the body, should be registered
for reflection, as far as I remember adding something like:
> > ```
> > quarkus.camel.native.reflection.include-patterns = java.lang.String
> > ```
> >
> > Should fix the issue
>
> I'm still getting:
>
> ```
> rror processing exchange. Exchange[5FD5BA4206A71CA-000000000000001F].
Caused by: [org.apache.camel.language.bean.RuntimeBeanExpressionException -
Failed to invoke method: toUpperCase() on null due to:
org.apache.camel.component.bean.MethodNotFoundException: Method with name:
toUpperCase() not found on bean: Hello Yaml !!! of type: java.lang.String on
the exchange: Exchange[5FD5BA4206A71CA-000000000000001F]]:
org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke
method: toUpperCase() on null due to:
org.apache.camel.component.bean.MethodNotFoundException: Method with name:
toUpperCase() not found on bean: Hello Yaml !!! of type: java.lang.String on
the exchange: Exchange[5FD5BA4206A71CA-000000000000001F]
> at
org.apache.camel.language.bean.BeanExpression.invokeOgnlMethod(BeanExpression.java:453)
> at
org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:199)
> at
org.apache.camel.language.bean.BeanExpression.evaluate(BeanExpression.java:214)
> at
org.apache.camel.language.simple.SimpleExpressionBuilder$28.evaluate(SimpleExpressionBuilder.java:757)
> at
org.apache.camel.support.ExpressionAdapter.evaluate(ExpressionAdapter.java:45)
> at
org.apache.camel.processor.TransformProcessor.process(TransformProcessor.java:47)
> at
org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:463)
> at
org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:179)
> at
org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:184)
> at
org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:398)
> at
org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:210)
> at
org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:76)
> at java.util.TimerThread.mainLoop(Timer.java:556)
> at java.util.TimerThread.run(Timer.java:506)
> at
com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:567)
> at
com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
> Caused by: org.apache.camel.component.bean.MethodNotFoundException: Method
with name: toUpperCase() not found on bean: Hello Yaml !!! of type:
java.lang.String on the exchange: Exchange[5FD5BA4206A71CA-000000000000001F]
> at
org.apache.camel.component.bean.BeanInfo.createInvocation(BeanInfo.java:263)
> at
org.apache.camel.component.bean.AbstractBeanProcessor.process(AbstractBeanProcessor.java:126)
> at
org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
> at
org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:41)
> at
org.apache.camel.language.bean.BeanExpression.invokeBean(BeanExpression.java:347)
> at
org.apache.camel.language.bean.BeanExpression.invokeOgnlMethod(BeanExpression.java:449)
> ... 16 more
> ```
>
> But maybe I've added the build property in the wrong place...
There is a chance that java.lang. classes are not included as not found by
jandex, @ppalaga may know more
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]