-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
grpc-java is not compatible with native-image with Quarkus wich enable the --link-at-build-time option. #10781
Comments
This looks like a duplicate of #9736. Since there's a demand for it, we'll revisit this issue at a team meeting next week. |
There's multiple Gax things listed, which aren't really relevant to gRPC. The gRPC issue appears to be I will say that we don't really support Quarkus directly; we have no expertise with it. All fixes up to this point have been community contributions, although the googleapis folks may be able to help us as they have more experience. googleapis/google-cloud-java#10180 (comment) provides a lot of good details of what is going on. That does get us back to io.netty.util.internal.logging.Log4J2Logger of #9736, which is really a Netty issue or a "the config rewriting in #8258 doesn't work properly" issue. But I don't think we have expertise to distinguish between them.
What should I do to see that error? My attempt to reproduce, which ran without errors:
|
@ejona86 Build the native image for it.
|
Let's close this as a duplicate of #10601. There's some details there about what seems to be going on. |
What version of gRPC-Java are you using?
1.59.0
What is your environment?
Ubuntu WSL
GraalVM 21.0.1
What did you expect to see?
I want to use google cloud client library vertex ai project which has a dependcy to grpc-java.
https://github.com/googleapis/google-cloud-java/tree/main/java-vertexai
grpc-java should be compatible with native-image with Quarkus wich enable the --link-at-build-time option.
What did you see instead?
grpc-java is not compatible with native-image with Quarkus wich enable the --link-at-build-time option.
Please check the reproduce project in the section Steps to reproduce the bug.
apache/camel-quarkus@372e221#diff-045b0cd1db2866c2c9b1e5608edc0d4a5d81acfb3d8b2e0df0ae22fce3298ae2
https://github.com/quarkiverse/quarkus-google-cloud-services/blob/main/common/grpc/src/main/java/io/quarkiverse/googlecloudservices/common/grpc/runtime/graal/GoogleApiGaxGrpcSubstitutions.java
This error is reported at image build time because class com.google.api.gax.grpc.InstantiatingGrpcChannelProvider is registered for linking at image build time by command line and command line.
This error is reported at image build time because class io.grpc.xds.internal.security.SslContextProvider is registered for linking at image build time by command line and command line. Use the option
Steps to reproduce the bug
https://github.com/SetoKaiba/gcp_reproduce
Use the reproduce project to reproduce.
Related issues
quarkusio/quarkus#37909
googleapis/google-cloud-java#10180
#9736
The text was updated successfully, but these errors were encountered: