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 2020/07/13 14:02:41 UTC

[GitHub] [camel-k-runtime] igarashitm opened a new issue #390: No type converter warning if final type of body is java.util.Map

igarashitm opened a new issue #390:
URL: https://github.com/apache/camel-k-runtime/issues/390


   If a camel source consumer route carries java.util.Map type of body at the end, it gets following WARN.
    It's just an eyesore and route itself works just fine, but probably better to silently ignore if body type is not usable for this `KnativeHttpConsumer`
   ```
   2] 2020-07-13 13:29:19.866 WARN  [vert.x-eventloop-thread-1] KnativeHttpConsumer - Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: java.util.LinkedHashMap to the required type: byte[] with value {Email=asddf@example.com, Phone=123123123, Id=0031I0000198G43QAE, Name=asdf asdf}]
   [2] org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: java.util.LinkedHashMap to the required type: byte[] with value {Email=asddf@example.com, Phone=123123123, Id=0031I0000198G43QAE, Name=asdf asdf}
   [2] 	at org.apache.camel.impl.converter.CoreTypeConverterRegistry.mandatoryConvertTo(CoreTypeConverterRegistry.java:216) ~[org.apache.camel.camel-base-3.4.0.jar:3.4.0]
   [2] 	at org.apache.camel.impl.converter.CoreTypeConverterRegistry.mandatoryConvertTo(CoreTypeConverterRegistry.java:168) ~[org.apache.camel.camel-base-3.4.0.jar:3.4.0]
   [2] 	at org.apache.camel.component.knative.http.KnativeHttpConsumer.computeResponseBody(KnativeHttpConsumer.java:317) ~[org.apache.camel.k.camel-knative-http-1.3.1-SNAPSHOT.jar:1.3.1-SNAPSHOT]
   [2] 	at org.apache.camel.component.knative.http.KnativeHttpConsumer.lambda$handleRequest$3(KnativeHttpConsumer.java:196) ~[org.apache.camel.k.camel-knative-http-1.3.1-SNAPSHOT.jar:1.3.1-SNAPSHOT]
   [2] 	at io.vertx.core.impl.ContextImpl.lambda$null$0(ContextImpl.java:330) ~[io.vertx.vertx-core-3.9.0.jar:3.9.0]
   [2] 	at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[io.vertx.vertx-core-3.9.0.jar:3.9.0]
   [2] 	at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[io.vertx.vertx-core-3.9.0.jar:3.9.0]
   [2] 	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [io.netty.netty-common-4.1.48.Final.jar:4.1.48.Final]
   [2] 	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) [io.netty.netty-common-4.1.48.Final.jar:4.1.48.Final]
   [2] 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) [io.netty.netty-transport-4.1.48.Final.jar:4.1.48.Final]
   [2] 	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [io.netty.netty-common-4.1.48.Final.jar:4.1.48.Final]
   [2] 	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [io.netty.netty-common-4.1.48.Final.jar:4.1.48.Final]
   [2] 	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty.netty-common-4.1.48.Final.jar:4.1.48.Final]
   [2] 	at java.lang.Thread.run(Thread.java:834) [?:?]
   ```
   
   This WARN could be avoided by converting to json at the end of the consumer route.
   


----------------------------------------------------------------
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-k-runtime] lburgazzoli closed issue #390: No type converter warning if final type of body is java.util.Map

Posted by GitBox <gi...@apache.org>.
lburgazzoli closed issue #390:
URL: https://github.com/apache/camel-k-runtime/issues/390


   


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