StreamBridge unable to send message due to missing TARGET_PROTOCOL field
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java, spring, spring-boot
- Domain
- backend, stream-processing
Research direction
Start with the StreamBridge.send("mySupplier-out-0", "myMessage") call in SpringPulsarBinderSampleApp.java and reproduce the NoSuchFieldError using Spring Cloud Stream 5.0.0-SNAPSHOT. Trace the TARGET_PROTOCOL reference and verify the Spring Cloud Function and Stream dependencies are compatible; done means the sample integration test sends the message without this exception.
Written by the indexing model from the issue text.
Description
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)
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 646
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 8
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from spring-cloud/spring-cloud-stream
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
spring-cloud/spring-cloud-stream#3268 · 1 comment ·
-
bug
spring-cloud/spring-cloud-stream#3257 · 2 comments · 2 reactions · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
spring-cloud/spring-cloud-stream#3242 · 1 comment ·
-
Backport 4.3.x bug
spring-cloud/spring-cloud-stream#3211 · 3 comments · 1 assignee ·
-
bug
spring-cloud/spring-cloud-stream#3208 · 4 comments · 1 reaction · 1 assignee ·
All issues in spring-cloud/spring-cloud-stream
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100