I have a Quarkus application that uses gRPC. I have implemented a ServerInterceptor to look for and validate auth tokens. This works and sends a message to the client like this: but it logs this error on the server because I didn’t return from the method after sending the error: Several posts suggest I …
Tag: grpc
Transitive Dependencies on generated (gGRPC) code with java/maven
We have a server and client application which shall talk to each other, both written in java and built with maven. They interact via a gRPC interface. We have different dependency situations on server and client: The server includes libraries lib-a and lib-b which in turn need a subset of the messages that ar…
Spring: re-initialized a bean
This is my Spring bean in the configuration class that creates a gRPC ManagedChannel: The controller method is provided below: The service class is: For each request, I create a new ManagedChannel in the service method processRequest and shut it down using the method called shutdownManagedChannel. Earlier, I …
How to access gRPC server in matlab?
We have moved our DataAccess logic to Microservice and it is currently implemented as gRPC with C++ and we are able to utilize that in C# client and C++ client. Now we have to make use of this DataAccess grpc in Matlab client(legacy). So, i’m trying to find a way to access gRPC from Matlab and found tha…
Could one gRPC server run multiple same class of service?
Consider following code I want this server to run two AService with different args, argA and argB, is it possible? If possible, when a AStub call the method, which instance of service would it call? Answer I believe it is not possible, because each service is added to a map, by name, therefore new AServiceImp…
I can’t generate the gRPC stubs classes
I managed to generate the classes through the .proto file but they are in the build. I would like the classes to be generated within the main because when I am going to extend the stub, it is not being possible to implement the methods. Look: File .proto: The .proto file is inside the main folder. Does anyone…
GRPC clojure BigDecimal to java BigDecimal
I have a java client that is calling a Clojure service via GRPC. The problem is when we get the response back from their service it is adding letters to the end of the big decimal. When we try to convert it to a big decimal in java we get an error converting from a string to a big decimal.
Channel ManagedChannelImpl was not shut down properly
If I run following these two tests I get the error. 1st test 2nd test io.grpc.internal.ManagedChannelOrphanWrapper$ManagedChannelReference cleanQueue SEVERE: ~~~ Channel ManagedChannelImpl{logId=1, target=localhost:8081} was not shutdown properly!!! ~~~ Make sure to call shutdown()/shutdownNow() and wait unti…
How to fix “Could not find policy ‘pick_first'” with Google TTS java client?
I can’t make a request using Google TTS Client library in java. Each time it throws a bunch of exceptions. I just try to get a list of available voices. I first thought it came from the credentials file. But it’s not, the file is correctly located. And I get this. How to fix this error ? Note that…
Why does ManagedChannelBuilder not have TLS parameters for making TLS connections to the server?
In this example https://github.com/grpc/grpc-java/blob/master/interop-testing/src/test/java/io/grpc/testing/integration/TlsTest.java you see that the TLS client connection has various TLS parameters such as But my app has thus far used https://github.com/grpc/grpc-java/blob/master/core/src/main/java/io/grpc/M…