-
Notifications
You must be signed in to change notification settings - Fork 837
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 started but cannot connect #588
Comments
As you can see in the logs, the server did not find/register the grpc service. |
Would be appreciated that if you don't mind help me to check through my app. It locates at https://github.com/jeffreychu-org/kotlin_example_app in grpc-issue branch. It may tested simply be
This issue struggle me a few days. Many thanks. Cheers. |
I have trouble starting the docker compose on my computer (I haven't used it here before). I still managed to start the application by stripping it of the other components. 2021-09-29 21:38:40.805 INFO 2888 --- [ main] n.d.b.g.s.s.AbstractGrpcServerFactory : Registered gRPC service: grpc.health.v1.Health, bean: grpcHealthService, class: io.grpc.services.HealthServiceImpl
2021-09-29 21:38:40.805 INFO 2888 --- [ main] n.d.b.g.s.s.AbstractGrpcServerFactory : Registered gRPC service: grpc.reflection.v1alpha.ServerReflection, bean: protoReflectionService, class: io.grpc.protobuf.services.ProtoReflectionService
2021-09-29 21:38:41.220 INFO 2888 --- [ main] n.d.b.g.s.s.GrpcServerLifecycle : gRPC Server started, listening on address: *, port: 9090
2021-09-29 21:38:41.230 INFO 2888 --- [ main] c.e.k.KotlinExampleAppApplicationKt : Started KotlinExampleAppApplicationKt in 3.566 seconds (JVM running for 4.106) As you can see the server detected the two default grpc services ( ServerReflection, Health ). I checked the jar and the class wasn't present there, so I suspect there is an issue with your build gradle that ignores plain java files. |
Yes. That's what I'm also suspecting that if we can have hybird spring boot application with boot kotlin and java since I found that the bean is not created. Anyway, does this starter package support kotlin version? Since I know the message files generated by protoc are still java. Or is there any example of integrating with kotlin about this starter so I can get a try. |
Kotlin is definitely supported by this project. |
I'm using kotlin with spring boot building by gradle. The log shows that grpc server was listening on port 9090, while when I use BloobRpc to test if the server works, it reflects "error": "12 UNIMPLEMENTED: Method not found: demo.Greeter/SayHello".
My GrpcServerService basically is written by Java as below
Does anyone knows how to resolve this issue?
The text was updated successfully, but these errors were encountered: