Currently we are migrating our applications from Camel 2.x to Camel 3.x and faced an issue that JacksonDataFormat is not using an ObjectMapper from the application context by default anymore. Instead you need to provide a property camel.dataformat.json-jackson.auto-discover-object-mapper=true for this feature to work. I don't understand why this is not equal to true by default for the camel-jackson-starter module, this seems illogical to me. Probably someone knows the reason behind this?
Why autoDiscoverObjectMapper is false by default in camel-jackson-starter?
2k views Asked by Anastasiia Smirnova At
1
There are 1 answers
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in APACHE-CAMEL
- How to mock a dynamic endpoint in Apache Camel Spring Boot
- Not able to access route elements in test when using a camel filter
- Apache Camel - Why is Rest OpenAPI appending basePath twice
- A NullPointerException occurs in setupCamelContext method after Camel upgrade from 2.X to 3.2
- Exception attempting to get original in message in apache camel
- Apache camel Quartz start immediatly after application startup and then every hour
- How to delay preMove for each file detected using SFTP?
- Upgrade to Camel 4 causing CXF soap call to fail with "Received RST_STREAM: Stream cancelled"
- Why is apache/camel deleting files after processing
- How to set map in Camel kafka option params
- Consume webClient Flux<DataBuffer> directly by apache camel route
- How can I use apache camel bindy to convert java pojo to fixed length string that has a list attribute?
- Dynamically creating camel file routes
- Is Apache Camel typically deployed as a single application?
- How to check for delimiter in netty tcp connection. And what's the use of delimiter
Related Questions in SPRING-CAMEL
- Not able to access route elements in test when using a camel filter
- Apache camel Quartz start immediatly after application startup and then every hour
- Cannot find method setHandleFault(java.lang.Boolean) in CamelContext in camel 3.x
- SAXParseException with Camel 4
- No value for key "javax.xml.ws.wsdl.service" on org.apache.cxf.binding.soap.SoapMessage with camel version 3.17.0 and cxf 3.5.5
- Saving Dead letter messages in file system/database
- Loading camel routes in camel context runtime from database
- How to set camel json Jackson options autoDiscoverObjectMapper
- Apache Camel route fails to commit transaction
- Autowiring Spring beans inside Camel routes defined through Spring XML
- Apache Camel from with dynamic folder
- Camel doesn't register beans automatically for a Spring Framework (not Spring Boot) annotation-defined application
- How to use <proxy> with Camel 4 and Spring?
- SpringBoot and Camel graceful shutdown
- Camel Context - The dependencies of some of the beans in the application context form a cycle:
Related Questions in CAMEL-JACKSON
- How to set camel json Jackson options autoDiscoverObjectMapper
- What is the replacement of setDataFormatResolver for ExtendedCamelContext?
- Enable EMPTY_ELEMENT_AS_NULL in Camel 3 XML DSL
- Remove null and empty objects in nested classes during serialization with Jackson and Lombok
- Apache Camel jackson unmarshaller dont work
- Why autoDiscoverObjectMapper is false by default in camel-jackson-starter?
- Apache-camel: How to process a json object (sent by curl) into headers?
- Camel Java DSL: Update the next polling request param using the value from the response
- Prevent camel-jackson from removing quotation marks
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Apache Camel is modifying
ObjectMapperbean properties depending on yourJacksonDataFormatdefinition. This is really confusing, if seemingly irrelevantDataFormatdefinition is changing your singletonObjectMapperbean in registry, which you might have configured for different part of your application. This could be unexpected for some developers, so it has been decided to fail-fast during startup.If you are using more than one
JacksonDataFormatdefinition, never setcamel.dataformat.json-jackson.auto-discover-object-mapper=true. You will see some strange behavior, which will be extremely hard to debug.See CAMEL-14101: