-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC server not starting if proto grammar in maven dependency #15057
Comments
/cc @cescoffier, @michalszynkiewicz, @quarkusio/devtools |
@jspasquali thanks for your report! |
Not sure if what you refer with service implementation class is the generated grpc services or the singleton implementation extending from it? I'll try to be more specific:
If my goal is to share the .proto definition, maybe I should change the approach and not deliver the generated grpc services in the "grammar" module but only deliver .proto files; and generate grpc services in each "server impl" module? |
I meant the singleton. I think what you describe should work fine. Do you happen to have, or can prepare, a minimal reproducer? It would help me a lot in fixing the issue quickly. |
Sure, I'll try to put together a minimal reproducer when possible |
Thanks in advance :) |
Here is a reproducer repo : https://github.com/jspasquali/quarkus-grpc-dep-issue |
The details on what happens are that the To fix this, you need to have the |
Thanks @michalszynkiewicz, I forgot about this jandex thing... I tried with empty beans.xml and with jandex plugin, both are indeed valid solutions. |
True, it would be good to have this info in the gRPC guide. I added this to my todo list. |
+1 on adding this to the gRPC guide. I ran into this problem and found this issue here and it can be fixed by #15057 (comment) |
People seem to be running into quarkusio#15057 (including myself) because a Jandex Index is missing, thus we should update the gRPC Getting Started Guide and mention this.
@michalszynkiewicz I opened #19441 that updates the gRPC guide. Do you have some free cycles to review it? |
@nastra thanks a lot :) |
People seem to be running into quarkusio#15057 (including myself) because a Jandex Index is missing, thus we should update the gRPC Getting Started Guide and mention this.
People seem to be running into quarkusio#15057 (including myself) because a Jandex Index is missing, thus we should update the gRPC Getting Started Guide and mention this.
People seem to be running into quarkusio#15057 (including myself) because a Jandex Index is missing, thus we should update the gRPC Getting Started Guide and mention this.
In my setup, there are 2 maven modules:
When compiling and running
java -jar target/my-app-1.0.0-SNAPSHOT-runner.jar
the grpc server does not start, and grpc-server does not appear in the installed features:But if I remove the maven dependency on generated grammar and add the service.proto into the project itself, then the grpc server starts as expected:
I would have expected the gRPC feature to be enabled as soon as a gRPC service implementation bean is present, but it seems it works differently. Am I missing something? Should I add something to the project to make the gRPC feature enabled by quarkus?
Environment
uname -a
orver
:MINGW64_NT-10.0 NCEL77941 2.11.2(0.329/5/3) 2018-11-10 14:38 x86_64 Msys
java -version
:java version "11.0.6" 2020-01-14 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)
mvnw --version
orgradlew --version
):Apache Maven 3.6.3
The text was updated successfully, but these errors were encountered: