astefanutti edited a comment on pull request #2536:
URL: https://github.com/apache/camel-k/pull/2536#issuecomment-889855106


   > > > @astefanutti adding js to the mix is gogin to require much more time 
and resources, I remember it required ~12 GB
   > > > btw, we can probably add the required additional-build-args as part of 
the build step for the js dsl
   > > 
   > > 
   > > 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:
   
   ```
   error 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...


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to