Hi,
I try to print my protocol-buffer message as a Json, but I get allways an 
exception

java.lang.NoSuchMethodError: 
com.google.protobuf.Any.getDescriptor()Lcom/google/protobuf/Descriptors$Descriptor;
    at 
com.google.protobuf.util.JsonFormat$PrinterImpl.buildWellKnownTypePrinters(JsonFormat.java:783)
    at 
com.google.protobuf.util.JsonFormat$PrinterImpl.<clinit>(JsonFormat.java:777)
    at 
com.google.protobuf.util.JsonFormat$Printer.appendTo(JsonFormat.java:362)
    at 
com.google.protobuf.util.JsonFormat$Printer.print(JsonFormat.java:382)
    ...

My protocol-buffer message classes are generated by protoc version 3.13.0.
My protocol-buffer message classes are compiled with protobuf-java 3.13.0 
and I use protobuf-util 3.13.0

My code:
Message msg = ConcreteMessage.newBuilder().build();
JsonFormat.printer().print(msg);

What is going wrong?

Thanks.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/f0659fd4-67a9-4037-887c-c54773f5859fo%40googlegroups.com.

Reply via email to