Two @Incoming
via smallrye-reactive-messaging causes build errors.
#19562
Labels
Milestone
@Incoming
via smallrye-reactive-messaging causes build errors.
#19562
Describe the bug
I'm trying this experimental feature: https://smallrye.io/smallrye-reactive-messaging/smallrye-reactive-messaging/2/advanced/incomings.html using the
smallrye-kafka
connector.I consistently get this failure when building the application:
Expected behavior
It should work as described in the documentation: it simply processes both messages from the channels in no particular order
Actual behavior
There's a build failure that shows the usage of
@Outcoming
. I suspect the building of two@Incoming
on the same function internally uses an@Outcoming
to facilitate this, but the usage of@Outcoming
makes the build step fail withInvalid method annotated with @Outgoing: org.acme.kafka.processor.Example#process - the method must not be void
How to Reproduce?
A reproducer is here: https://github.com/navkast/quarkus-reproducer. It's a very simple reproducer amounting to just:
Adding
@Blocking
or usingpublic void process(String msg) {
have the same results.Output of
uname -a
orver
Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment (build 11.0.10+9) OpenJDK 64-Bit Server VM (build 11.0.10+9, mixed mode)
Quarkus version or git rev
2.1.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
The text was updated successfully, but these errors were encountered: