Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19220

camel-groovy - Avoid setting variables to initialize the binding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.0-M3, 4.0.0
    • camel-groovy
    • None
    • Unknown

    Description

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

      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)
      

      Attachments

        Issue Links

          Activity

            People

              nfilotto Nicolas Filotto
              nfilotto Nicolas Filotto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: