Skip to content

Spring Boot 4.0.0-M1 and spring-cloud-stream-binder-kafka 5.0.0-M1 use conflicting versions of Jackson #46659

@magnus-larsson

Description

@magnus-larsson

I'm doing some early migration tests of an application based on Spring Boot 3.5.0 and Spring Cloud 2025.0.0 to Spring Boot 4.0.0-M1 and Spring Cloud 2025.1.0-M1.

I encountered an issue with spring-cloud-stream-binder-kafka 5.0.0-M1 using Jackson 3.0.0-rc6 and Spring Boot 4.0.0-M1 using Jackson 2.19.2.

One of my REST controllers fails to marshal a JSON body to a Java object. If I remove the dependency on spring-cloud-stream-binder-kafka (and Jackson 3.0.0-rc6), the problem disappears. So I guess that the two major versions of Jackson conflict with each other.

Are the two Jackson versions expected to work side by side in a Spring Boot 4 application?

I can put together a minimal reproducer application, if it can be of help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions