Skip to content

StreamBridge unable to send message due to missing TARGET_PROTOCOL field #3134

@onobc

Description

@onobc

In Spring Pulsar we have a failing SCSt Pulsar binder integration test which seems to be caused by StreamBridge (spring-cloud-stream 5.0.0-SNAPSHOT) referencing MessageUtils.TARGET_PROTOCOL (from spring-cloud-function-context-5.0.0-SNAPSHOT) which has been removed.

Steps to reproduce

With Spring Cloud Stream 5.0.0-SNAPSHOT making the following call:

streamBridge.send("mySupplier-out-0", "myMessage");

will result in the following exception:

Caused by: java.lang.IllegalStateException: java.lang.NoSuchFieldError: TARGET_PROTOCOL
    at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:808)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:325)
    at org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$2(SpringBootContextLoader.java:144)
    at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
    at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
    at org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1444)
    at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:563)
    at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:144)

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