grpc-java

Facing NoSuchMethodError for io.netty.util.AttributeKey.valueOf() method with grpc and protobuf Hello world example

青春壹個敷衍的年華 提交于 2019-12-03 09:23:39
After running GreetingServerTest.java tests I am getting below given errors. I am using grpc 1.1.0-SNAPSHOT libraries and trying to implement basic Helloword example of grpc given in there git repo. Can anybody please suggest which libraries I am missing or there's anything else I need to do. java.lang.NoSuchMethodError: io.netty.util.AttributeKey.valueOf(Ljava/lang/Class;Ljava/lang/String;)Lio/netty/util/AttributeKey; at io.grpc.netty.Utils.<clinit>(Utils.java:87) at io.grpc.netty.NettyServer.allocateSharedGroups(NettyServer.java:187) at io.grpc.netty.NettyServer.start(NettyServer.java:116)

Does gRPC server spin up a new thread for each request?

浪子不回头ぞ 提交于 2019-12-03 07:52:42
I tried profiling a gRPC java server. And i see the below set of thread pools majorly. grpc-default-executor Threads : Created 1 for each incoming request. grpc-default-worker-ELG Threads: May be to listen on the incoming gRPC requests & assign to the above "grpc-default-executor" thread. Overall, is gRPC java server, Netty style or Jetty/Tomcat style? Or it can configured to run as both ways? gRPC Java server is exposed closer to Jetty/Tomcat style, except that it is asynchronous. That is, in normal Servlets each request consumes a thread until it is complete. While newer Servlet versions let

java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument

和自甴很熟 提交于 2019-11-29 13:22:40
I am trying to run this grpc-Java example on my local. Corresponding proto file for the same is here . When i try to run in on local it throws the following exception from here : Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V at io.grpc.ServiceDescriptor.validateMethodNames(ServiceDescriptor.java:129) at io.grpc.ServiceDescriptor.<init>(ServiceDescriptor.java:83) at io.grpc.ServiceDescriptor.<init>(ServiceDescriptor.java:51) at io.grpc.ServiceDescriptor$Builder.build