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
CloudEvent deserialization does not work with quarkus-resteasy-reactive #27970
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
I'll have a look later on today or tomorrow |
It seems to work in Classic RESTEasy because of an undocumented feature there: The extension code scans the classpath for JAX-RS Providers. I am a little weary of adding the same feature to RESTEasy Reactive. I propose adding the Jandex plugin to the build of |
@geoand would you be able to provide a working example? |
I'm actually rethinking this and it probably does make sense to do what RESTEasy Classic does |
…t.Providers Resolves: quarkusio#27970
#27981 should take care of the issue |
In the meantime I tried to use jandex option using application.properties approach described here: https://quarkus.io/guides/cdi-reference#how-to-generate-a-jandex-index and it works fine. |
Yeah, that's the general way to index libraries on the classpath that are not searched by default |
…t.Providers Resolves: quarkusio#27970
…t.Providers Resolves: quarkusio#27970
…t.Providers Resolves: quarkusio#27970
Detect MessageBodyReader/Writer from META-INF/services/javax.ws.rs.ext.Providers
…t.Providers Resolves: quarkusio#27970 (cherry picked from commit cff0be1)
Describe the bug
When using quarkus-resteasy-reactive (plus quarkus-resteasy-reactive-jackson) CloudEvent class cannot be deserialized on REST endpoints. Everything works fine with quarkus-reasteasy.
Expected behavior
CloudEvent class should be deserialized.
Actual behavior
The following exception is being thrown and 500 Internal Server Error is returned from the server:
How to Reproduce?
cloudevents-reactive-sample.zip
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.12.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: