You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/06/23 16:48:53 UTC

[GitHub] [camel-quarkus] nicolaferraro opened a new issue #2838: Cannot convert buffer types in platform-http

nicolaferraro opened a new issue #2838:
URL: https://github.com/apache/camel-quarkus/issues/2838


   I'm using the following service in a Camel K integration (My test was with Quarkus 1.x):
   
   ```
         rest().post("/{currency}")
           .route()
           .log("Asking the internal department to BUY ${header.currency}...");
   ```
   
   
   I expected the service to echo the message back (it was working this way), but I get a conversion error:
   ```
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration 2021-06-23 16:45:00,677 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-eventloop-thread-1) HTTP Request to /BTC failed, error id: a90c1bee-809d-4eac-b71f-cd80ce31c762-1: 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":33521.23,"operation":"buy"}
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at org.apache.camel.impl.converter.CoreTypeConverterRegistry.mandatoryConvertTo(CoreTypeConverterRegistry.java:275)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at org.apache.camel.impl.converter.CoreTypeConverterRegistry.mandatoryConvertTo(CoreTypeConverterRegistry.java:207)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at org.apache.camel.component.platform.http.vertx.VertxPlatformHttpSupport.writeResponse(VertxPlatformHttpSupport.java:181)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at org.apache.camel.component.platform.http.vertx.VertxPlatformHttpConsumer.lambda$handleRequest$3(VertxPlatformHttpConsumer.java:198)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.vertx.core.impl.ContextImpl.lambda$null$0(ContextImpl.java:327)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:366)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
   cautious-investor-service-00004-deployment-6bbd6bbdf-zq8rw integration  at java.base/java.lang.Thread.run(Thread.java:829)
   ```


-- 
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.

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



[GitHub] [camel-quarkus] jamesnetherton commented on issue #2838: Cannot convert buffer types in platform-http

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #2838:
URL: https://github.com/apache/camel-quarkus/issues/2838#issuecomment-867668600


   I proposed a workaround in #2846 for CQ 2.0.0. I opened a Camel ticket to fix properly in later releases.
   
   https://issues.apache.org/jira/browse/CAMEL-16756


-- 
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.

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



[GitHub] [camel-quarkus] jamesnetherton commented on issue #2838: Cannot convert buffer types in platform-http

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #2838:
URL: https://github.com/apache/camel-quarkus/issues/2838#issuecomment-867475191


   I can reproduce this in CQ 1.8.1 / Camel 3.9.0, but not with CQ 2.x / Camel 3.10.
   
   I'll add a test to verify.


-- 
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.

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



[GitHub] [camel-quarkus] jamesnetherton commented on issue #2838: Cannot convert buffer types in platform-http

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #2838:
URL: https://github.com/apache/camel-quarkus/issues/2838#issuecomment-867500517


   Actually I'm wrong - I can reproduce with CQ 2.x.


-- 
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.

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



[GitHub] [camel-quarkus] ppalaga closed issue #2838: Cannot convert buffer types in platform-http

Posted by GitBox <gi...@apache.org>.
ppalaga closed issue #2838:
URL: https://github.com/apache/camel-quarkus/issues/2838


   


-- 
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-unsubscribe@camel.apache.org

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