question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

c++ server and java client communications issue

See original GitHub issue

Hello. I try write gRPC communication with java client and c++ server on linux. But i have exception (below) in client when it runs RPC procedure. Logs shows that server processed request, sended answer and continues its work. For test i wrote same client on c++ and same server on java. All communication versions works. And only client(java) with server(c++) failed. I hope you can help me. Thanks.

Exception in thread “main” com.google.common.util.concurrent.UncheckedExecutionException: io.grpc.Status$OperationRuntimeException: INTERNAL: Headers(path=null,authority=null,metadata={grpc-status=[0]}) DATA-----------------------------

 at io.grpc.stub.Calls.getUnchecked(Calls.java:117)
 at io.grpc.stub.Calls.blockingUnaryCall(Calls.java:129)
 at rpc_test.ManagerServiceGrpc$ManagerServiceBlockingStub.doGet(ManagerServiceGrpc.java:274)
 at rpc_test.Client.testRPC(Client.java:53)
 at rpc_test.Client.main(Client.java:64)

Caused by: io.grpc.Status$OperationRuntimeException: INTERNAL: Headers(path=null,authority=null,metadata={grpc-status=[0]}) DATA-----------------------------

 at io.grpc.Status.asRuntimeException(Status.java:428)
 at io.grpc.stub.Calls$UnaryStreamToFuture.onClose(Calls.java:324)
 at io.grpc.ChannelImpl$CallImpl$ClientStreamListenerImpl$3.run(ChannelImpl.java:373)
 at io.grpc.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:152)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yudov-maksimcommented, Apr 30, 2015

Ok. I will wait a solving. Thank you.

0reactions
ejona86commented, May 5, 2015

We’ve seen the problem go away on integration tests as well. I’m not fully certain what change caused it to be introduced or fixed, but it seems resolved at this point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with communication between c server/java client
I need to send message from a java client to c server via tcp. In java i use PrintWriter and send three string:...
Read more >
need to communicate c server on linux & java client on windows
Hi!! I am new to socket programing in both C and Java. ... though cient server in linux is working perfectly fine and...
Read more >
Establishing the two-way Communication between Server and ...
Creating the Client Program: Let's create a client, named Client2.Java, which first connects to a server, then starts the communication by ...
Read more >
Socket communication between C server and Java Client
The server is coded in C and client is coded in Java. I have a struct in C with a few primitive data-types...
Read more >
Client/Server Communication via Sockets - Runestone Academy
Let's now see how a client/server application would be coded in Java. The template in Listing 15.7.4 shows the code that is necessary...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found