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.

Run a grpc application not working

See original GitHub issue

According to link http://www.grpc.io/docs/quickstart/java.html#run-a-grpc-application , I must follow the below steps to execute a hello world sample client and server.

From the examples directory:
$ ./gradlew installDist
$ ./build/install/examples/bin/hello-world-server
$ ./build/install/examples/bin/hello-world-client

I am using Windows machine , so gradlew installDist command works for me. But after that, there is no build/install/examples/bin folder structure to execute hello-world-server.

There is a hello-world-server in examples\build\tmp folder, but that too gives following error Error: Could not find or load main class io.grpc.examples.helloworld.HelloWorldServer

Please help

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
carl-mastrangelocommented, Nov 3, 2016

I am not sure what is wrong. I am on linux, so the commands seem to work on my machine. As a sanity check could you verify the following things:

  1. Windows uses \ instead of /, could you replace the command with that, and remove the ./ at the beginning of the command?
  2. Could you run dir while in the the examples directory?
  3. Can you also include the full output of ./gradlew clean installDist ?
0reactions
nagamanikandankcommented, Nov 3, 2016

I found the solution!!!I had to run hello-world-client and hello-world-server from build/install/examples/bin/ folder and not hello-world-client.bat and hello-world-server.bat

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot gRPC on .NET Core - Microsoft Learn
This document discusses commonly encountered problems when developing gRPC apps on .NET. Mismatch between client and service SSL/TLS ...
Read more >
Trouble-Shooting | grpc-spring-boot-starter - GitHub Pages
The Problem · The application is already running · Another application is using that port · The grpc server uses a port that...
Read more >
Troubleshooting Response Errors | Cloud Endpoints with gRPC
This page describes how to troubleshoot errors that you receive in a response from a request to your API. Upstream backend unavailable.
Read more >
Re: Unable to connect to Cloud Run gRPC server
I believe the problem is in the network setting but can't find the way to connect and call a gRPC function from the...
Read more >
gRPC client not working when called from within gRPC service
The UNKNOWN message is an exception on the server side that was not passed to the client. You probably need to increase the...
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