I did some digging around and found that they are the same version but are being sourced via two different routes:
1. com_google_protobuf_protobuf_java is coming from a maven_jar transitive dependency from spark. 2. git_repository(...protobuf...) provides another runtime library and the protoc compiler that is being used by our proto_library rule for the generated protocol buffers. Previously, they were different versions. I tried setting both to 3.0.0-beta-2. However, I still received the same error. Just to be sure, I also ran bazel clean --expunge and rebuilt everything. Is it that the git release of protobuf and the maven release of protobuf-3.0.0-beta-2 are different, or do you still believe I'm getting protobuf through some third source? On Wed, Mar 23, 2016 at 5:46 PM, Feng Xiao <[email protected]> wrote: > > > On Wed, Mar 23, 2016 at 3:20 PM, Rohit Saboo <[email protected]> wrote: > >> Hi all, >> >> I'm seeing the following error with my generated protocol buffer in Java >> (with Bazel as the build system and being used inside a spark program): >> >> Exception in thread "main" java.lang.VerifyError: class ...Proto$Builder >> overrides final method >> setUnknownFields.(Lcom/google/protobuf/UnknownFieldSet;)Lcom/google/protobuf/GeneratedMessage$Builder; >> at ... >> >> I synced to HEAD and still noticed this problem. Is this a known problem, >> and is there a workaround? >> > Can you check if the protoc you are using is the same version as with the > protobuf runtime? > > >> >> Thanks, >> Rohit >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Protocol Buffers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/protobuf. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
