Skip to content

4.2.0-RC1: NoSuchMethodError: org.springframework.integration.support.MessageBuilder.removeHeader(java.lang.String) #3047

@asantare

Description

@asantare

spring-cloud-stream 4.2.0-RC1 fails with NoSuchMethodError when an AMQP message is received.

Probably because the missing method has been moved to a super-class in spring-integration 6.4.0.

I've been using new spring-boot 3.4.0 from "https://start.spring.io/" which uses the spring-cloud 2024.0.0-RC1.

Here the partial build.gradle.kts:

plugins {
	java
	id("org.springframework.boot") version "3.4.0"
	id("io.spring.dependency-management") version "1.1.6"
}

...

extra["springCloudVersion"] = "2024.0.0-RC1"

dependencies {
	implementation("org.springframework.boot:spring-boot-starter")
	implementation("org.springframework.cloud:spring-cloud-function-context")
	implementation("org.springframework.cloud:spring-cloud-stream-binder-rabbit")
}

dependencyManagement {
	imports {
		mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions