Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-16820

Camel-k-example-knative: Exceptions in cautious-investor pods

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • Camel-K-GA
    • Camel-K-M4
    • Camel-K
    • None
    • False
    • False
    • % %
    • Todo
    • Undefined

    Description

      Tried with camel-k-m4-build1 operator:

      cautious-investor-adapter-sink:

      [1] 2021-06-22 12:51:50,830 INFO  [route1] (vert.x-worker-thread-11) Received prediction to buy BTC
      [1] 2021-06-22 12:51:50,830 INFO  [route2] (Camel (camel-1) thread #0 - seda://buy) Informing the external service to BUY...
      [1] 2021-06-22 12:51:50,840 ERROR [org.apa.cam.pro.err.DefaultErrorHandler] (Camel (camel-1) thread #0 - seda://buy) Failed delivery for (MessageId: 29535DD81B1841F-0000000000000030 on ExchangeId: 29535DD81B1841F-0000000000000030). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://cautious-investor-service.knative-quickstart.svc.cluster.local/BTC with statusCode: 500
      [1] 
      [1] Message History (complete message history is disabled)
      [1] ---------------------------------------------------------------------------------------------------------------------------------------
      [1] RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
      [1] [route2            ] [route2            ] [from[seda://buy]                                                              ] [        11]
      [1] 	...
      [1] [route2            ] [to3               ] [http://cautious-investor-service.{{env:NAMESPACE}}.svc.cluster.local/BTC      ] [         0]
      [1] 
      [1] Stacktrace
      [1] ---------------------------------------------------------------------------------------------------------------------------------------
      [1] : org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://cautious-investor-service.knative-quickstart.svc.cluster.local/BTC with statusCode: 500
      [1] 	at org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:419)
      [1] 	at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:291)
      [1] 	at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66)
      [1] 	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:172)
      [1] 	at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:463)
      [1] 	at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:179)
      [1] 	at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64)
      [1] 	at org.apache.camel.processor.Pipeline.process(Pipeline.java:184)
      [1] 	at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:398)
      [1] 	at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:269)
      [1] 	at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:187)
      [1] 	at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:130)
      [1] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      [1] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      [1] 	at java.base/java.lang.Thread.run(Thread.java:829)
      [1] 
      [1] 2021-06-22 12:51:50,841 WARN  [org.apa.cam.com.sed.SedaConsumer] (Camel (camel-1) thread #0 - seda://buy) Error processing exchange. Exchange[29535DD81B1841F-0000000000000030]. Caused by: [org.apache.camel.http.common.HttpOperationFailedException - HTTP operation failed invoking http://cautious-investor-service.knative-quickstart.svc.cluster.local/BTC with statusCode: 500]: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://cautious-investor-service.knative-quickstart.svc.cluster.local/BTC with statusCode: 500
      [1] 	at org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:419)
      [1] 	at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:291)
      [1] 	at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66)
      [1] 	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:172)
      [1] 	at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:463)
      [1] 	at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:179)
      [1] 	at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64)
      [1] 	at org.apache.camel.processor.Pipeline.process(Pipeline.java:184)
      [1] 	at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:398)
      [1] 	at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:269)
      [1] 	at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:187)
      [1] 	at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:130)
      [1] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      [1] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      [1] 	at java.base/java.lang.Thread.run(Thread.java:829)
      [1] 
      

      cautious-investor-service:

      [1] 2021-06-22 12:52:41,144 INFO  [route1] (vert.x-worker-thread-13) Asking the internal department to BUY BTC...
      [1] 2021-06-22 12:52:41,145 WARN  [org.apa.cam.com.pla.htt.ver.VertxPlatformHttpConsumer] (vert.x-eventloop-thread-1) Failed handling platform-http endpoint /{currency}. Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: io.vertx.core.buffer.impl.BufferImpl to the required type: java.nio.ByteBuffer with value {"value":29521.36,"operation":"buy"}]: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: io.vertx.core.buffer.impl.BufferImpl to the required type: java.nio.ByteBuffer with value {"value":29521.36,"operation":"buy"}
      [1] 	at org.apache.camel.impl.converter.CoreTypeConverterRegistry.mandatoryConvertTo(CoreTypeConverterRegistry.java:275)
      [1] 	at org.apache.camel.impl.converter.CoreTypeConverterRegistry.mandatoryConvertTo(CoreTypeConverterRegistry.java:207)
      [1] 	at org.apache.camel.component.platform.http.vertx.VertxPlatformHttpSupport.writeResponse(VertxPlatformHttpSupport.java:181)
      [1] 	at org.apache.camel.component.platform.http.vertx.VertxPlatformHttpConsumer.lambda$handleRequest$3(VertxPlatformHttpConsumer.java:198)
      [1] 	at io.vertx.core.impl.ContextImpl.lambda$null$0(ContextImpl.java:327)
      [1] 	at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
      [1] 	at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
      [1] 	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
      [1] 	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
      [1] 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
      [1] 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
      [1] 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
      [1] 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      [1] 	at java.base/java.lang.Thread.run(Thread.java:829)
      [1] 
      [1] 2021-06-22 12:52:41,145 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-eventloop-thread-1) HTTP Request to /BTC failed, error id: a52239fc-d2c8-4c81-890d-20524c4c81ec-18: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: io.vertx.core.buffer.impl.BufferImpl to the required type: java.nio.ByteBuffer with value {"value":29521.36,"operation":"buy"}
      [1] 	at org.apache.camel.impl.converter.CoreTypeConverterRegistry.mandatoryConvertTo(CoreTypeConverterRegistry.java:275)
      [1] 	at org.apache.camel.impl.converter.CoreTypeConverterRegistry.mandatoryConvertTo(CoreTypeConverterRegistry.java:207)
      [1] 	at org.apache.camel.component.platform.http.vertx.VertxPlatformHttpSupport.writeResponse(VertxPlatformHttpSupport.java:181)
      [1] 	at org.apache.camel.component.platform.http.vertx.VertxPlatformHttpConsumer.lambda$handleRequest$3(VertxPlatformHttpConsumer.java:198)
      [1] 	at io.vertx.core.impl.ContextImpl.lambda$null$0(ContextImpl.java:327)
      [1] 	at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
      [1] 	at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
      [1] 	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
      [1] 	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
      [1] 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
      [1] 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
      [1] 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
      [1] 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      [1] 	at java.base/java.lang.Thread.run(Thread.java:829)
      [1] 
      [1] 2021-06-22 12:53:00,849 INFO  [route2] (vert.x-worker-thread-14) Asking the department to SELL BTC...
      
      

      Attachments

        Activity

          People

            nicolaferraro Nicola Ferraro (Inactive)
            avano@redhat.com Andrej Vano
            Andrej Smigala Andrej Smigala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: