You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/06/23 07:16:00 UTC

[jira] [Assigned] (CAMEL-15229) autoDiscoverObjectMapper is not propagated to JacksonDataFormat

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

Claus Ibsen reassigned CAMEL-15229:
-----------------------------------

    Assignee: Claus Ibsen

> autoDiscoverObjectMapper is not propagated to JacksonDataFormat
> ---------------------------------------------------------------
>
>                 Key: CAMEL-15229
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15229
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jackson
>    Affects Versions: 3.3.0
>            Reporter: Bogdan Ilchyshyn
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.4.1, 3.5.0
>
>         Attachments: camel-object-mapper.zip
>
>
> When {{autoDiscoverObjectMapper}} is set on {{JsonDataFormat}} definition, it is not propagated to {{JacksonDataFormat}}. Looking at the code in {{JsonDataFormatReifier}} I was not able to see this property in the list of populated properties.
>  
> Please see attachment for the reproducer project. {{ObjectMapperTest}} demonstrates the issue. In the route builder we set:
> {code:java}
> json.setAutoDiscoverObjectMapper("true"); {code}
> but it has no affect, indicated by an exception on Java Time deserialization and a message in logs:
> {noformat}
> o.a.c.c.jackson.JacksonDataFormat        : The option autoDiscoverObjectMapper is set to false, Camel won't search in the registry
> ...
> Exhausted after delivery attempt: 1 caught: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `java.time.LocalDate` (no Creators, like default construct, exist): no String-argument constructor/factory method to deserialize from String value ('2077-01-01') {noformat}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)