Croway opened a new pull request, #24705: URL: https://github.com/apache/camel/pull/24705
Fixes two regressions in `camel-jackson3` from the Jackson 2 → Jackson 3 port (CAMEL-22857): 1. **Type converter drops all but the last configured Jackson module** — `JacksonTypeConverters.resolveObjectMapper()` replaced the mapper with a fresh `JsonMapper.builder().addModule(module).build()` on every loop iteration over `CamelJacksonTypeConverterModuleClassNames`, so only the last module was registered. Now all modules are accumulated on a single builder (matching the Jackson 2 behavior of `registerModule`). 2. **Jackson exceptions escape data type transformers unwrapped** — `JsonStructDataTypeTransformer` and `JsonPojoDataTypeTransformer` still caught the checked `IOException` that Jackson 3 read/write calls no longer throw, so malformed JSON escaped as a raw unchecked `JacksonException` instead of being wrapped in `CamelExecutionException` with the exchange attached (as `JsonDataTypeTransformer` already does). Added `JacksonException` to the catch clauses. Each new test was verified to fail against the unfixed code and pass with the fix; the full `camel-jackson3` suite passes (103 tests). Note: `camel-jackson3` was introduced in 4.19.0, so no backport to `camel-4.18.x` is applicable. JIRA: https://issues.apache.org/jira/browse/CAMEL-24064 _Claude Code on behalf of Croway_ -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
