No *ImplBase.java service code generated by protoc.

33 views
Skip to first unread message

grpc-newbie

unread,
Feb 20, 2018, 6:10:22 AM2/20/18
to grpc.io
Hi,

I'm new to grpc, but not to Java.  I'm wanting to run some services under netty with grpc using Java, but I have a problem where protoc generates the request and response object code but no *ImplBase.java file for the service itself. Is this a common symptom of anything?  The service is defined in the .proto file.

Any help appreciated.

Eric Anderson

unread,
Feb 20, 2018, 6:34:08 PM2/20/18
to grpc-newbie, grpc.io
You need to run the grpc-java code generator in addition to the normal java generator. This is done by enabling the protoc-gen-grpc-java plugin.

For Maven or Gradle snipits, check out our README.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/7a4b4c1a-565f-4211-bcc9-506d52d8b5e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages