-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 implementation not registered in multi-module project when implementing generated interface #19864
Comments
@kristijan-rusu thank you for your report. |
Wouldn't using the jandex plugin would fix it too? |
@cescoffier it's not enough, we'll investigate with Martin tomorrow. |
Ok, it's a bit tricky here. You need to add the In fact, the scope annotation is added to the generated I think that we should add the |
Hm, this won't actually work. We don't ignore an archive that contains a qualifier definition (i.e. an annotation annotated with |
- an application archive that contains a MutinyBean implementor is an additional bean archive - resolves quarkusio#19864 (cherry picked from commit 13bc4d2)
- an application archive that contains a MutinyBean implementor is an additional bean archive - resolves quarkusio#19864 (cherry picked from commit 13bc4d2)
- an application archive that contains a MutinyBean implementor is an additional bean archive - resolves quarkusio#19864 (cherry picked from commit 13bc4d2)
Describe the bug
In a multi-module maven project, if you want to share your
.proto
files between client / server modules, server implementation does not work if you extend the Quarkus Mutiny generated interface.Expected behavior
The implementation when extending the generated Quarkus Mutiny interface to be registered as gRPC implementation.
Actual behavior
The implementation when extending the generated Quarkus Mutiny interface is not injected in
io.quarkus.grpc.runtime.GrpcContainer
, thus not registered as a gRPC implementation. This is because the generated interface does not implementio.grpc.BindableService
which is injected in the container class.How to Reproduce?
Reproducible project:
org.example.zip
Steps to reproduce the behaviour:
mvn install
on example-api module.http://localhost:8080/greet/{name}
Expected: The response to be
Hello {name}
Actual:
io.grpc.StatusRuntimeException: UNIMPLEMENTED
Important note: Implementing every other service type (blocking, bare gRPC, Mutiny impl base) works as expected.
Output of
uname -a
orver
OS name: "mac os x", version: "11.4", arch: "x86_64", family: "mac"
Output of
java -version
openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7) OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.2.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
Additional information
No response
The text was updated successfully, but these errors were encountered: