Skip to content
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

ProtoReflectionService "server" is null exception #22

Open
freynder opened this issue Nov 22, 2022 · 3 comments · May be fixed by #115
Open

ProtoReflectionService "server" is null exception #22

freynder opened this issue Nov 22, 2022 · 3 comments · May be fixed by #115
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@freynder
Copy link

Version

4.3.5

Context

Encountering exception when querying grpc reflection service

Testing with grpcurl:
grpcurl -plaintext localhost:8080list

Exception:
15:01:35.948 [vert.x-eventloop-thread-2] ERROR io.vertx.core.impl.ContextBase - Unhandled exception java.lang.NullPointerException: Cannot invoke "io.grpc.Server.getImmutableServices()" because "server" is null at io.grpc.protobuf.services.ProtoReflectionService.getRefreshedIndex(ProtoReflectionService.java:93) at io.grpc.protobuf.services.ProtoReflectionService.serverReflectionInfo(ProtoReflectionService.java:134) at io.grpc.reflection.v1alpha.ServerReflectionGrpc$MethodHandlers.invoke(ServerReflectionGrpc.java:208) at io.grpc.stub.ServerCalls$StreamingServerCallHandler.startCall(ServerCalls.java:235) at io.vertx.grpc.server.impl.GrpcServiceBridgeImpl.lambda$bind$2(GrpcServiceBridgeImpl.java:62) at io.vertx.grpc.server.impl.GrpcServerImpl$MethodCallHandler.handle(GrpcServerImpl.java:95) at io.vertx.grpc.server.impl.GrpcServerImpl.handle(GrpcServerImpl.java:62)

val grpcServer: GrpcServer = GrpcServer.server(vertx)
val mainBridge = GrpcServiceBridge.bridge(MainBridge())
val reflectionBridge = GrpcServiceBridge.bridge(ProtoReflectionService.newInstance())
mainBridge.bind(grpcServer)
reflectionBridge.bind(grpcServer)

httpServer = vertx
  .createHttpServer(httpOptions)
  .requestHandler(grpcServer)
  //.requestHandler(router)
  .listen(appConfig.webPort).await()
@freynder freynder added the bug Something isn't working label Nov 22, 2022
@tsegismont tsegismont added enhancement New feature or request help wanted Extra attention is needed and removed bug Something isn't working labels Nov 24, 2022
@tsegismont
Copy link
Contributor

Thank you for reporting. This is not supported by vertx-grpc. As a workaround, you can start grpcurl by providing the proto files.

@yizmailovSF
Copy link

@tsegismont Hey, is there a plan to support ProtoReflectionService in the near future?

@vietj
Copy link
Member

vietj commented Jul 19, 2023

we should open a feature request for this and open it to contributions

@vietj vietj added this to the 4.5.1 milestone Nov 29, 2023
@vietj vietj modified the milestones: 4.5.1, 4.5.2 Dec 13, 2023
@vietj vietj modified the milestones: 4.5.2, 4.5.3 Jan 30, 2024
@vietj vietj modified the milestones: 4.5.3, 4.5.4 Feb 6, 2024
@vietj vietj modified the milestones: 4.5.4, 4.5.5 Feb 22, 2024
@vietj vietj modified the milestones: 4.5.5, 4.5.6 Mar 14, 2024
@vietj vietj modified the milestones: 4.5.6, 4.5.7, 4.5.8 Mar 21, 2024
@vietj vietj modified the milestones: 4.5.8, 4.5.9 May 24, 2024
@vietj vietj modified the milestones: 4.5.9, 4.5.10 Jul 17, 2024
@vietj vietj modified the milestones: 4.5.10, 4.5.11 Sep 4, 2024
@wvuong wvuong linked a pull request Sep 4, 2024 that will close this issue
@vietj vietj removed this from the 4.5.11 milestone Nov 12, 2024
@vietj vietj added this to the 4.5.12 milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants