On Mon, Oct 28, 2024 at 7:06 AM Ingolfur Hjorleifsson <hingolf...@gmail.com>
wrote:

> using protoc —version = libprotoc 28.3


The version of protobuf-java must be at least the version of protoc being
used. protoc 28.3 needs protobuf-java 4.28.3+ (the protobuf release is the
minor+patch versions of protobuf-java). So you should depend on
protobuf-java 4.28.3+. gRPC right now is depending on 3.x series (but
compatible with 4.x), as we wait for the ecosystem to be ready to upgrade
to 4.x.


> grpc version = protoc-gen-grpc-java-1.41.0-osx-x86_64.exe
>

That is quite old.

javac -d . -cp "jar_lib4/*":. org/baeldung/grpc/org/baeldung/grpc/*.java
>
> org/baeldung/grpc/org/baeldung/grpc/HelloRequest.java:139: error: cannot
> find symbol
>
>     if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firstName_)) {
>
>                                              ^
>
>   symbol:   method isStringEmpty(Object)
>
>   location: class GeneratedMessage
>
>
HelloRequest is a message, which can clue you in to looking at your
protobuf versions.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oMCg81Dsvoj2g1VR9saTpJgyik_D70kBDuUv1DyqNbm_g%40mail.gmail.com.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to