grpc-java Questions

3

The following are my protobuf definitions: enum Foo { BAR = 0; BAZ = 1; } message UpdateRequest { string id = 1; Foo foo = 2; . . . } I need the foo field of the UpdateRequest to be nulla...
Woolf asked 6/3, 2021 at 16:12

6

Solved

I use gRPC to generate code '@javax.annotation.Generated' like below picture. Then I use maven to build the project, and it reports 'Error:(20,18) java: cannot find symbol' like below picture. ...
Complexity asked 1/4, 2020 at 9:58

5

Solved

I am implementing a gRPC API using LogNet grpc-spring-boot-starter. I want to return, for instance, an INVALID_ARGUMENT error code when an incorrect argument has been passed. If I throw a custo...
Foredoom asked 5/7, 2019 at 13:58

1

Here is my scenario. The grpc server is an asynchronous sever which subscribes data from other source. Also it provides a subscribe function to its client, thus it could push the data to the grpc c...
Jamila asked 1/8, 2018 at 1:20

3

Working on Grpc Bidirectional Streaming, when i try to run grpc, getting below error Connection Error io.netty.handler.codec.http2.Http2Exception: HTTP/2 client preface string missing or corrupt. ...
Ventilator asked 8/8, 2017 at 14:39

3

Solved

I am using gRPC application and building a simple app. Below the files. syntax = "proto3"; option java_multiple_files = true; package com.grpc; message HelloRequest { string firstName =...
Liddy asked 30/9, 2020 at 14:1

4

Solved

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 threa...
Giraffe asked 13/2, 2017 at 14:27

2

Solved

I have a gRPC server written in C++ and a client written in Java. Everything was working fine using a blocking stub. Then I decided that I want to change one of the calls to be asynchronous, so I c...
Luxemburg asked 14/10, 2020 at 14:49

6

Solved

I am having trouble finding the source of this error. I implemented a simple service using protobuf: syntax = "proto3"; package tourism; service RemoteService { rpc Login(LoginUserDTO) returns ...
Trunnion asked 21/5, 2017 at 21:44

3

Solved

I am trying to handle gRPC errors properly (Java, Spring-boot app). Basically, I need too transfer error details from gRPC server to client, but I find it hard to understand the proper usage of Str...
Wittman asked 8/10, 2020 at 7:29

2

Solved

Our communication exceeds the default grpc-java limit on the message size: Caused by: io.grpc.StatusRuntimeException: INTERNAL: Frame size 4555602 exceeds maximum: 4194304. If this is normal, incr...
Vagina asked 28/9, 2016 at 17:9

2

Solved

I have been trying to generate the basic gRPC client and server interfaces from a .proto service definition here from the grpc official repo. The relevant service defined in that file (from the li...
Retha asked 30/12, 2018 at 9:49

5

Solved

We need to convert Google Proto buffer time stamp to a normal date. In that circumstance is there any way to convert Google Proto buffer timestamp to a Java LocalDate directly?
Logorrhea asked 4/10, 2018 at 11:24

1

I'm trying to map from Protobuf to POJO. Here's the POJO: public class CreateNodesAllDataDto { private List<UpsertNodeDto> tables; private List<UpsertColumnDto> columns; } where ups...
Psychobiology asked 10/4, 2021 at 7:52

2

Problem I have a Spring-Boot application in which I am also starting a gRPC server/service. Both the servlet and gRPC code send requests to a common object to process the request. When the request ...
Autotomize asked 9/4, 2019 at 14:36

2

Solved

Its new topic for me. I'm able to connect as plaintext. public ManagedChannel getChannel(String serviceName){ TSServiceClientManager scm = TSServiceManagementFactory.getInstance().getServiceClien...
Crossindex asked 4/12, 2017 at 7:17

3

Solved

If I run following these two tests I get the error. 1st test @Rule public GrpcCleanupRule grpcCleanup = new GrpcCleanupRule(); @Test public void findAll() throws Exception { // Generate a uniqu...
Quin asked 13/8, 2019 at 16:20

1

We are currently implementing a high throughput spring boot application using grpc-starter package https://github.com/yidongnan/grpc-spring-boot-starter, this is a client server based application. ...
Varney asked 14/2, 2022 at 17:11

3

Solved

I am using Java and Protoc 3.0 compiler and my proto file is mention below. https://github.com/openconfig/public/blob/master/release/models/rpc/openconfig-rpc-api.yang syntax = "proto3"; packag...
Wanitawanneeickel asked 18/4, 2017 at 18:1

1

Solved

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 Data...
Catenane asked 5/1, 2022 at 12:5

5

Solved

As per the following page I should be able to send in json payload : https://developers.google.com/protocol-buffers/docs/proto3 under 'JSON Mapping'. I would like to send in json payload as part ...
Embosser asked 15/12, 2016 at 1:4

1

Solved

I am getting "HTTP/2 client preface string missing or corrupt." My thoughts are that it has to do with the headers not being set correctly. It is likely the implementation of WifiClient/W...
Hierophant asked 10/12, 2021 at 22:44

2

Solved

I'm working with a GRPC service hosted with HTTPS and self-signed cert. When I connect using syntax like: const client = new productService('https://grpc-server-xxx.com:9090', grpc.credentials.cre...
Solemnity asked 30/5, 2020 at 20:7

2

Solved

Was wondering if anybody has tried to use jmeter to test gRPC application. I was hoping that I could write a gRPC client class with a non-blocking/asynchronous stub that makes non-blocking calls t...
Hammy asked 25/3, 2017 at 15:50

9

In gRPC , how to add a global exception interceptor that intercepts any RuntimeException and propagate meaningful information to the client ? for example , a divide method may throw ArithmeticExce...
Custommade asked 30/9, 2016 at 17:41

© 2022 - 2024 — McMap. All rights reserved.