957 questions
0
votes
1
answer
54
views
GRPC service is not accessible via Eureka
I have a microservices setup with the following services:
ECOM Service
API Gateway
NOTIFICATION-SERVICE (Spring gRPC-based service)
I’m trying to make the ECOM service communicate with the ...
0
votes
1
answer
89
views
Issue with GRPC with Netty NIO threads
Hello I am facing some issues while Integrating Grpc Client to use Netty's NIO for grpc call and handling callbacks, i want application threads to be free from tracking the status of grpc calls and ...
0
votes
1
answer
87
views
gRPC problem in pom.xml file of my spring boot application
I am getting this error in my pom.xml file when using this build for my gRPC. Cannot resolve symbol 'os.detected.classifier'. Any advice!
<build>
<extensions>
<!-- ...
1
vote
0
answers
49
views
Grpc netty always establishing TLS1.2 even if configured TLS1.3 in ssl context in both server and client
I am using NettyChannelBuilder in grpc client and NettyServerBuilder in grpc server.
I have created NettyServerBuilder with sslcontext with TLS1.3 and started the server as below
import io.grpc....
1
vote
0
answers
38
views
Can't open gRPC channel after signing macOS application
I'm developing an application for macOS on Compose Desktop. Compose successfully executes Gradle tasks, but the application crashes on startup.
The application must not be published to the App Store.
...
0
votes
0
answers
72
views
Java gRPC - Single Channel with multiple DNS of same backend
Different instances of the same backend I want to use in my gRPC Channel are hosted in different AWS regions with different DNS. I want to pass in all these different DNS at the time of Channel ...
0
votes
0
answers
161
views
Protobuf/Grpc generated code from maven with javax instead of jakarta package
I am updating a spring boot project to version 3.4.5 with java 21. For this packages have changed from javax.* to jakarta.*
I am generating Grpc endpoints with protofiles with this maven plugin:
...
2
votes
0
answers
101
views
Why does Spring Initializr still use the deprecated protobuf-maven-plugin for gRPC projects? [closed]
I've recently started learning how to work with gRPC in Spring Boot. I used Spring Initializr to bootstrap a new project and added the gRPC dependencies. To my surprise, the generated pom.xml included ...
0
votes
1
answer
143
views
No error on the grpc client when ignoring the response stream from the server
I call the grpc server with a blocking stub that returns a stream.
blockingStub.send(request);
The generated stub code in blockingStub looks like this
java.util.Iterator<Response> send(Request ...
0
votes
0
answers
99
views
Not able to consume event from salesforce platform event using camel salesforce
Not able to consume event from salesforce platform event using camel salesforce
I am using camel 4.8.0, JDK 17 and Spring boot 3.3.4
I am using the below code.
from("salesforce:pubSubSubscribe:/...
0
votes
1
answer
76
views
grpc-spring-boot-starter method for Authentication
I'm using implementation("net.devh:grpc-spring-boot-starter:3.1.0.RELEASE") library to do Grpc work in my java application.
I followed the documentation to implement Authentication, ...
0
votes
3
answers
144
views
Using GRPC + Springboot, the GRPC plugin is not able to autogenerate the Streaming request object
I am using the new Springboot starter from org.springframework.boot (more details below) and I am able to use it to make a simple GRPC API to return Hello world. Now I was trying to upgrade the same ...
1
vote
1
answer
106
views
GRPC StreamObserver threads has no CDI context in Jakarta EE Open Liberty server
I have an Open Liberty server (23.0.0.9), running Jakarta 10 with CDI 3.0 that I am running a grpc-channel with push-pull based streams to an external server. A ManagedServiceExecutor is supplied to ...
0
votes
0
answers
94
views
Context.current() Changes every time it is called
In my GRPC server Context.current().toString() returns a different value everytime it is called even with in the same function for a single request.
Based on https://grpc.github.io/grpc-java/javadoc/...
0
votes
0
answers
61
views
GRPC context keeps changing within a single request
I have a GRPC server that handles large number of requests per second. I have header interceptors, Completion and cancelled interceptors created. My understanding is that context of GRPC request would ...
0
votes
0
answers
241
views
Error "INTERNAL: Encountered end-of-stream mid-frame" while running an application with Concurrent Threads
I am working on a multithreaded application where I create a few threads. One of the threads makes a gRPC call, and midway through the frame, the thread encounters an END_OF_STREAM error while reading ...
1
vote
1
answer
179
views
Getting error error: cannot find symbol private static final com.google.protobuf.Internal.IntListAdapter.IntConverter
I have updated the com.google.protobuf:protoc version from 4.27.5 to 4.28.0 in my android project. The protobuf block has a defination like this
protobuf {
//dependency versions are defined under ...
1
vote
1
answer
305
views
First grpc call is taking more time to connect to server
We have written a grpc client and server. Whenever client and server are started, first 3-5 calls take more time in establishing connection. We are running 2 pods of grpc client and 2 pods of grpc ...
0
votes
0
answers
83
views
Expected top-level statement (e.g. "message") for syntax="proto3" line
Here is my accounts.protobuf file
package com.lyngo.account.protobuf;
syntax = "proto3";
import "google/protobuf/empty.proto";
service GrpcAccountService {
rpc ...
0
votes
0
answers
24
views
PACT framework didn't generate all test methods into .json file
My java class
@Pact(consumer = "P01819-ipa-mi")
public V4Pact tradesByFilterProductTypeFXFWD(PactBuilder builder) throws InterruptedException {
return builder
...
0
votes
1
answer
115
views
How to Assign/Configure a New EventLoop Group to Spring Boot gRPC Client?
I am using the Spring Boot Starter gRPC for my Reactive Spring Boot Server App Application and wanted to use a different Event Loop Group for my gRPC client (the service app talks to other services ...
0
votes
0
answers
126
views
What is the correct way to read all gRPC headers and trailers in Java, including ":status"?
I'm trying to implement an interceptor for logging in gRPC servers and clients.
In the interceptor I'd like to log all the headers and trailers.
I tried using the following code to read all the key-...
0
votes
1
answer
389
views
Wiremock GRPC demo example is not returning response
I am trying to run the demo provided at wiremock grpc page using spring boot: https://wiremock.org/docs/grpc/
I have the following configuration for the beans:
@Configuration
public class ...
1
vote
0
answers
252
views
Why the GrpcClient annotation doesn't work?
I am trying to set up a GRPC client, but the default implementation does not work. Below I describe my project (Java, SpringBoot, GRPC).
I have:
the protofile is located separately from the server and ...
0
votes
0
answers
128
views
Why does Envoy return a 200 status code with an empty body when proxying gRPC requests?
I am using Envoy as a proxy to forward gRPC requests to a backend gRPC service. My backend service is running on port 9090, and Envoy is listening on port 8084. When I send a gRPC request to http://...
0
votes
0
answers
329
views
gRPC server receiving http2.remote_reset when sending many messages
I have one pod on GKE with Istio, which streams data using gRPC. I am streaming a lot of avro records to a client. After some time, usually max 30 minutes, the connection is reset with error:
http2....
0
votes
0
answers
184
views
How to manage request-scoped data and MDC effectively in gRPC unary calls?
I have a Spring Boot application serving HTTP requests in a multitenant architecture. For HTTP requests, client identity is extracted from a header and stored in a ThreadLocal. Since Tomcat ensures a ...
1
vote
0
answers
604
views
Spring Boot gRPC Server Initialization Error: Unable to get public no-arg constructor for NettyServerProvider
I want to configure a gRPC server in my Spring Boot application (Java 17), but I am encountering the following error when trying to instantiate the server:
package org.xenwgram.config;
import io.grpc....
1
vote
0
answers
92
views
why grpc-java uds is slower than dns?
Question:
We did a test to compare the performance between uds and dns. According to what said on the Internet, uds should be faster because it lacks many network layer protocols. However, the actual ...
0
votes
0
answers
101
views
400 Bad Request error when verifying challenge response with Google's Verified Access API
I am using the following code to send a challenge response to Google's Verify API for verification. However, I am encountering an error:
Verification Failed: 400 Bad Request
Response: {
"error&...
1
vote
1
answer
77
views
How in Gosu override Java function when compiler require reified function?
My service on Gosu language (Java 11).
I write interceptor for GRPC Server. For it, I must implements next interface from GRPC library :
package io.grpc;
public interface ServerInterceptor {
<...
0
votes
1
answer
63
views
ManagedChannelBuilder creates a ManagedChannel, but MyService.newStub only accepts an RpcChannel
I'm trying to use the following code to create a stub:
ManagedChannel channel = channel = ManagedChannelBuilder.forAddress("localhost", 41800)
.usePlaintext()
.build();
...
1
vote
0
answers
364
views
Is datadog gprc trace metric (trace.grpc.server.hits) reliable?
My application is built using Kotlin and Spring Boot, with the gRPC framework running on AWS EKS clusters with datadog agent installed. We utilize Datadog APM to monitor the performance of our system. ...
0
votes
1
answer
121
views
Scaling gRPC Server Streaming to 100K Subscribers on GKE (Java Spring Boot Reactive)
I'm building a gRPC server streaming application using Java, Spring Boot, and reactive programming that acts as a wrapper around Google Cloud Pub/Sub. The application has two methods: /publish and /...
0
votes
0
answers
198
views
How to handle Grpc client channel reconnect scenarios in Java
I am using GRPC java 1.50 to handle Grpc communication among different components and using consul as service discovery.
On client side, I am caching ManagedChannel in ConcurrentHashMap for each ...
0
votes
1
answer
258
views
How to add the function of gRPC client to existed Micronaut http microservices
Environment:
Micronaut version: 4.6.3
JDK: 17
I have a rest api developed with Micronaut. Now I want to add the feature of gRPC client to this rest api for calling a gRPC server at http://localhost:...
0
votes
2
answers
100
views
Quarkus GRPC OpenTelemetry multiple transactions
Im using Quarkus together with io.quarkus:quarkus-opentelemetry:3.15.0. For log collection we are using Elastic and Cabana.
I have been doing some performance tests and I can see 2 types of ...
1
vote
1
answer
242
views
gRPC Application only listening for IPv6 Address
I am trying to run a Java gRPC Application on an Oracle Cloud Instance but it keeps listening only for IPv6 address
$ netstat -tulp | grep 16507
(Not all processes could be identified, non-owned ...
0
votes
1
answer
470
views
Getting a io.grpc.StatusRuntimeException: CANCELLED: io.grpc.Context was cancelled without error
I have written this simple gRPC code that should run the commit stub on every server. Here is the code -
private Boolean sendCommit(List<Transaction> allTransactions) {
for (int ...
0
votes
1
answer
101
views
grpc work with grpcurl but not working with java integration
We have a customer that we have to connect their grpc services. We can create jwt token from their server. When we use this jwt token with grpcurl, we can get response successfully, but when we trying ...
1
vote
1
answer
152
views
Spring gRPC @ExceptionHandler uses outdated Context generation
I'm using Spring Boot gRPC and encountered the problem that my set context (which I prepare in a @ServerInterceptor) is not used in exceptions at @GrpcAdvice ExceptionHandler. It handles Context....
0
votes
1
answer
132
views
How to close jetcd election client without errors
All client configurations work without any problems.
Election class in the Jetcd library has the following observe method,
void observe(ByteSequence electionName, Listener listener);
With this method ...
0
votes
1
answer
187
views
StatusRunTimeException with custom status codes in GRPC
We have an application where we have a need to return Custom GRPC Status codes, as we feel the codes are limited. Is there a way we can return Custom GRPC Status code?
I tried to return custom status ...
1
vote
0
answers
88
views
Shaded jar for Kafka Connector using grpc-netty-shaded not working
I am building a shaded jar that I want to run on a Kafka Connect cluster. This jar is a simple gRPC client that consumes Kafka messages from a topic then sends them to a server. However, when I run my ...
0
votes
0
answers
178
views
Set cookie to browser
I don't have the jwt token I got from my backend server installed in the browser.
I have the same configuration:
Client - react-app (grpc-web) (192.168.3.2:3000)
Proxy server envoy
(is on a virtual ...
0
votes
0
answers
73
views
grpc java latency between HEADERS and DATA resulting in client timeouts
We are facing multiple issues during the moderate load from grpc client written in C++ to grpc server written in java. (C++ is managed by clients and not in our control)
When we enabled the logs for ...
-1
votes
1
answer
546
views
GRPC-Java DEADLINE_EXCEEDED with 5 seconds even if put .withDeadlineAfter(5, TimeUnit.MINUTES)
Not sure if I am missing anything but I have a code block like this
ManagedChannel channel = getManagedChannel(serverId);
var responseObject = ArtifactsGrpc.newBlockingStub(channel).
....
0
votes
1
answer
471
views
Got ClassNotFoundException while building native image with grpc-netty-shaded 1.65.1
The version of grpc-java is 1.65.1, and I'm using grpc-netty-shaded in Nacos, which is an experimental version supporting Spring Boot 3.3.1. While using native:compile, the project encountered an ...
1
vote
2
answers
629
views
Java Spring Boot gRPC service not being created
I am trying to implement gRPC into my Java Spring Boot application (Maven), after compiling the .proto file and building the project, all the classes are being created except for the service in the ...
0
votes
1
answer
594
views
GRPC Java MAX_CONCURRENT_STREAMS vs maxConcurrentCallsPerConnection
I'm trying to understand the difference between MAX_CONCURRENT_STREAMS and maxConcurrentCallsPerConnection. I read that most servers set MAX_CONCURRENT_STREAMS to 100 as a default whereas ...