[ 
https://issues.apache.org/jira/browse/CAMEL-27272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-27272 started by Claus Ibsen.
-------------------------------------------
> camel-jackson, avro and protobuf - the Java object data types keep a Map or a 
> List when there is no X-Content-Class
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27272
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27272
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jackson, camel-jackson-avro
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> {{application-x-java-object}} (and {{avro-x-java-object}} and 
> {{protobuf-x-java-object}}, which extend it) reads Json into the class of the 
> {{X-Content-Class}} exchange property, and keeps a POJO when that property is 
> not set. A Map or a List without the property fails with "Missing content 
> class information for Java object data type processing", although it is a 
> Java object already and there is no class to read it into.
> So a Kamelet whose body is a Map or a List, such as 
> {{jolt-transformation-action}} or {{kafka-batch-source}}, or the {{in}} of 
> {{json-serialize-action}}, {{jsonata-action}}, {{avro-serialize-action}} and 
> {{protobuf-serialize-action}}, has no data type that keeps it.
> Fix: without {{X-Content-Class}}, a Map or a List (any Collection) is kept as 
> it is, and gets {{Content-Type: application/x-java-object}}. With the 
> property, a Map or a List still fails, as does a null body. The body types 
> say so ({{transformerIn}} lists {{map}} and {{list}}). Jackson 2 and 3.
> Part of the data types work for the Kamelet catalog (camel-kamelets#3117, 
> CAMEL-25928).
> _Claude Code on behalf of Claus Ibsen_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to