-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kafka serializer cannot be autodetected when injecting an Instance #44500
Labels
Milestone
Comments
/cc @alesj (kafka), @cescoffier (kafka), @ozangunalp (kafka) |
cescoffier
added
kind/enhancement
New feature or request
and removed
kind/bug
Something isn't working
labels
Nov 14, 2024
@ozangunalp @Ladicek Do you think we can extend the detection to handle this case? |
Yes, that should be possible. |
For the |
ozangunalp
added a commit
to ozangunalp/quarkus
that referenced
this issue
Nov 15, 2024
ozangunalp
added a commit
to ozangunalp/quarkus
that referenced
this issue
Nov 15, 2024
ozangunalp
added a commit
to ozangunalp/quarkus
that referenced
this issue
Nov 15, 2024
ozangunalp
added a commit
to ozangunalp/quarkus
that referenced
this issue
Nov 15, 2024
bschuhmann
pushed a commit
to bschuhmann/quarkus
that referenced
this issue
Nov 16, 2024
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Nov 19, 2024
Resolves quarkusio#44500 (cherry picked from commit c858117)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When injecting an
Emitter
orMutinyEmitter
wrapped inInstance
, the serializer is not autodetected and instead fails the application startup.Expected behavior
I expect that it should not matter if the emitter is injected directly or via
Instance
regarding the serializer autodetection.Actual behavior
The application startup fails with the error:
If i instead inject the emitter directly, the error is not thrown and the emitter works correctly.
How to Reproduce?
Using the below snippet causes an exception at startup, even if the bean is not used.
Output of
uname -a
orver
No response
Output of
java -version
openjdk version "21.0.5" 2024-10-15 OpenJDK Runtime Environment Homebrew (build 21.0.5) OpenJDK 64-Bit Server VM Homebrew (build 21.0.5, mixed mode, sharing)
Quarkus version or git rev
3.16.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.9
Additional information
I can work around this issue by specifying
mp.messaging.outgoing.foo_out.value.serializer=io.quarkus.kafka.client.serialization.ObjectMapperSerializer
inapplication.properties
.The text was updated successfully, but these errors were encountered: