You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Marco Zapletal <ma...@gmail.com> on 2015/11/16 11:55:22 UTC
DefaultExchangeHolder.marshal() produces a lot of warnings |
CAMEL-8415
Dear Camel folks,
starting with Camel 2.16, the DefaultExchangeHolder is expected to
transfer primitive headers/properties only (CAMEL-8415). The ActiveMQ
component, however, seems to set a lot of headers with null or
non-primitive values (e.g., JMSCorrelationID, JMSReplyTo,
JMSDestination, etc.) which results in a lot of warnings in our logs
(due to
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/impl/DefaultExchangeHolder.java#L358).
Is there any recommendation how to deal with that (except of setting the
log level of DefaultExchangeHolder to error :) or will that change in
the future again?
Furthermore, the ticket says that only primitive headers/properties
should be transferred, but according to the code it is checked whether
the header value is Serializable
(https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/impl/DefaultExchangeHolder.java#L240).
This seems somehow confusing to me.
Thanks and best regards,
Marco Zapletal