Nicolas Filotto created CAMEL-19220:
---------------------------------------

             Summary: camel-groovy - Avoid setting variables to initialize the 
binding
                 Key: CAMEL-19220
                 URL: https://issues.apache.org/jira/browse/CAMEL-19220
             Project: Camel
          Issue Type: Bug
          Components: camel-groovy
            Reporter: Nicolas Filotto
            Assignee: Nicolas Filotto
             Fix For: 4.0-M3


The changes made for CAMEL-19212 cause runtime errors in native mode 
https://github.com/apache/camel-quarkus/issues/4712 of the following type: 


{noformat}
2023-03-29T09:15:06.5898355Z Caused by: 
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast 
object 'null' with class 'null' to class 'int'. Try 'java.lang.Integer' instead
2023-03-29T09:15:06.5901668Z    at 
org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToNumber(DefaultTypeTransformation.java:186)
2023-03-29T09:15:06.5902449Z    at 
org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.intUnbox(DefaultTypeTransformation.java:92)
2023-03-29T09:15:06.5903768Z    at 
org.apache.camel.quarkus.component.groovy.generated.Expression668axhkmpOfBwe2iixBEtT194721N7sqMJrOlgVZAJVxs61.run(org.apache.camel.quarkus.component.groovy.generated.Expression668axhkmpOfBwe2iixBEtT194721N7sqMJrOlgVZAJVxs61:5)
2023-03-29T09:15:06.5907252Z    at 
org.apache.camel.language.groovy.GroovyExpression.evaluate(GroovyExpression.java:53)
2023-03-29T09:15:06.5907829Z    at 
org.apache.camel.support.ExpressionSupport.matches(ExpressionSupport.java:36)
2023-03-29T09:15:06.5913250Z    at 
org.apache.camel.processor.FilterProcessor.matches(FilterProcessor.java:89)
2023-03-29T09:15:06.5913967Z    at 
org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:71)
2023-03-29T09:15:06.5914600Z    at 
org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:474)
2023-03-29T09:15:06.5916861Z    at 
org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:181)
2023-03-29T09:15:06.5917520Z    at 
org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:59)
2023-03-29T09:15:06.5922296Z    at 
org.apache.camel.processor.Pipeline.process(Pipeline.java:164)
2023-03-29T09:15:06.5922898Z    at 
org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:378)
2023-03-29T09:15:06.5926160Z    at 
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:96)
2023-03-29T09:15:06.5927374Z    at 
org.apache.camel.impl.engine.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:213)
2023-03-29T09:15:06.5932016Z    at 
org.apache.camel.impl.engine.SharedCamelInternalProcessor$1.process(SharedCamelInternalProcessor.java:110)
2023-03-29T09:15:06.5934733Z    at 
org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:81)
2023-03-29T09:15:06.5940964Z    at 
org.apache.camel.impl.engine.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:107)
2023-03-29T09:15:06.5944226Z    at 
org.apache.camel.support.cache.DefaultProducerCache.send(DefaultProducerCache.java:164)
2023-03-29T09:15:06.5944848Z    at 
org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:176)
2023-03-29T09:15:06.5950089Z    at 
org.apache.camel.impl.engine.DefaultProducerTemplate.send(DefaultProducerTemplate.java:172)
2023-03-29T09:15:06.5950820Z    at 
org.apache.camel.impl.engine.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:413)
{noformat}




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

Reply via email to