You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue.
What version of gRPC are you using?
1.4
What JVM are you using (java -version)?
1.8
What did you do?
I have a code base that relies on Guava 14.0 and I would also like to use gRPC in my project.
gRPC needs Guava 19.0, which is not compatible with Guava 14.0.
I manually rename affected classed in the files that protobuf generates. The project builds fine, but when I ran it, I got the following error msg:
com.shade.io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp or grpc-netty artifact
As shown in the pom.xml, those dependencies have been added.
If possible, provide a recipe for reproducing the error.
The project builds fine, but when I ran it, I got the following error msg:
com.shade.io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp or grpc-netty artifact
As shown in the pom.xml, those dependencies have been added.
The text was updated successfully, but these errors were encountered:
@jingliucsd can you run unzip -l output.jar on the file you generated? There should be a META-INF/services directory which links to the service loader files.
@ejona86 really appreciate your help! It works now.
And I also want to share some unsuccessful efforts I made, just in case someone encountered similar issues in the future.
Merely shading com.google.com may not work. It can solve the "No functional channel service provider found" issue but my program somehow hangs. Seems like some deadlocking issue.
Please answer these questions before submitting your issue.
What version of gRPC are you using?
1.4
What JVM are you using (
java -version
)?1.8
What did you do?
I have a code base that relies on Guava 14.0 and I would also like to use gRPC in my project.
gRPC needs Guava 19.0, which is not compatible with Guava 14.0.
Following some instructions online (https://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html), I tried to shade/relocate gRPC library using the following pom.xml file.
I manually rename affected classed in the files that protobuf generates. The project builds fine, but when I ran it, I got the following error msg:
com.shade.io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp or grpc-netty artifact
As shown in the pom.xml, those dependencies have been added.
If possible, provide a recipe for reproducing the error.
What did you expect to see?
expect it to run without exceptions
What did you see instead?
The project builds fine, but when I ran it, I got the following error msg:
com.shade.io.grpc.ManagedChannelProvider$ProviderNotFoundException: No functional channel service provider found. Try adding a dependency on the grpc-okhttp or grpc-netty artifact
As shown in the pom.xml, those dependencies have been added.
The text was updated successfully, but these errors were encountered: