-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Smallrye Health extension doesn't work in native #1482
Comments
OK, this goes in parallel to #1480 . I think we will need some low level JSON-B/JSON-P library setting everything up and added as a dependency for everyone that needs it. |
@gsmet ok, thanks, I will leave it then to you |
gsmet
added a commit
to gsmet/quarkus
that referenced
this issue
Mar 15, 2019
I haven't added a FeatureBuildItem as I don't think they are worth an item in the feature list at startup. Fixes quarkusio#1480 and quarkusio#1482 and a few other issues in passing.
gsmet
added a commit
to gsmet/quarkus
that referenced
this issue
Mar 16, 2019
I haven't added a FeatureBuildItem as I don't think they are worth an item in the feature list at startup. Fixes quarkusio#1480 and quarkusio#1482 and a few other issues in passing.
gsmet
added a commit
to gsmet/quarkus
that referenced
this issue
Mar 19, 2019
I haven't added a FeatureBuildItem as I don't think they are worth an item in the feature list at startup. Fixes quarkusio#1480 and quarkusio#1482 and a few other issues in passing.
It should be fixed in tomorrow's release. |
maxandersen
pushed a commit
to maxandersen/quarkus
that referenced
this issue
Nov 5, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generating project without REST endpoint:
and adding smallrye-health:
Compiling to native and then accessing /health results in:
java.lang.InstantiationException: Type
org.glassfish.json.JsonProviderImpl
can not be instantiated reflectively as it does not have a no-parameter constructor or the no-parameter constructor has not been added explicitly to the native image.full stacktrace: https://pastebin.com/eupq0e5n
This class is added for reflective access only in ResteasyJsonbProcessor however smallrye-health uses JSON-P in SmallRyeHealthReporter.
I believe that smallrye-health extension should also register "org.glassfish.json.JsonProviderImp" for reflective access.
The text was updated successfully, but these errors were encountered: