Implement a working sample for Quarkus #30
Comments
Running the native image build through the debugger and here is the stack trace:
Somehow it fails on the Not sure why it fails. It's triggered by initialization of
my guess is that the Tried and now getting different errors regarding class initialization. Started a work-in-progress repo here: https://github.com/dzou/quarkus-gcp-experiments/blob/main/pom.xml |
Made some new progress in the sample. I got past the native library errors, however now am getting an error about grpc service providers:
|
I got this working finally; latest changes pushed to: https://github.com/dzou/quarkus-gcp-experiments/blob/main/pom.xml To get this to work:
|
Quarkus does not work out of the box with this library.
I think the root issue is that Quarkus brings its own version of
netty
and the Google client libraries bring in their version ofgrpc-netty-shaded
. Ordinarily there would be no conflicts, but both libraries also register native libraries, and these I think conflict with each other somehow.If you try building with both deps on the classpath you get the error:
If you go down the path of excluding
grpc-netty-shaded
and relying on Quarkus's version of netty, this gets you past this build error but fails at runtime since our configurations targetgrpc-netty-shaded
.I think it is worth first investigating if
grpc-netty-shaded
can be made compatible with quarkus. Apparently this should have been solved already: netty/netty#7272Otherwise, probably will move forward with using non-shaded
grpc-netty
which requires users manually adding an dep exclusion:The text was updated successfully, but these errors were encountered: