-
Notifications
You must be signed in to change notification settings - Fork 107
GraalVM native image fails on io.grpc.netty.shaded.io.netty.util.ReferenceCountUtil #1781
Comments
Hi @axelfontaine thanks for reporting this! I've attempted to reproduce this with a simple app that includes just gax 2.19.0 as a dependency on Graalvm 22.2.0 but haven't been able to see this error. A couple of questions to gain more information:
It would also be great if you have a small reproducer to share. |
We don't use gax directly, but it gets included as a transitive dependency of GCP's SDKs. Here are our relevant dependencies:
This is the code that triggers it:
And this is how we initialize our logging:
While this transitively includes an older version of gax, this doesn't change with 2.19.0 as can be verified by forcing the newer dependency with:
The relevant
And contain some highly questionable lines including:
Also note that everything works fine if |
@axelfontaine thanks for the detailed follow-up! I was able to reproduce this problem. It seemed like we were bringing in some unnecessary dependencies in java-compute which was causing a conflict with the slf4j library dependencies. This PR should address this: googleapis/java-compute#722. It will be introduced with java-compute 1.12.1 |
java-compute 1.12.1 has been released with this fix. |
Environment details
Steps to reproduce
The text was updated successfully, but these errors were encountered: