java.lang.NoSuchMethodError: com.google.protobuf.Descriptors$FileDescriptor.internalBuildGeneratedFileFrom([Ljava/lang/String;[Lcom/google/protobuf/Descriptors$FileDescriptor;)Lcom/google/protobuf/Descriptors$FileDescriptor;

54 views
Skip to first unread message

Iris

unread,
Feb 4, 2020, 6:51:18 AM2/4/20
to Protocol Buffers
I am running code from repository https://github.com/google/fhir/tree/master/examples/tensorflow

I'm experiencing the following error using version 3.6.1 of protoc:

Caused by: java.lang.NoSuchMethodError: com.google.protobuf.Descriptors$FileDescriptor.internalBuildGeneratedFileFrom([Ljava/lang/String;[Lcom/google/protobuf/Descriptors$FileDescriptor;)Lcom/google/protobuf/Descriptors$FileDescriptor;

at com.google.fhir.proto.Annotations.<clinit>(Annotations.java:908)

at com.google.fhir.stu3.proto.Resources.<clinit>(Resources.java:12056)

at com.google.fhir.stu3.proto.ContainedResource.getDescriptor(ContainedResource.java:1710)

at com.google.fhir.common.JsonFormat$Parser.createResourceTypes(JsonFormat.java:892)

at com.google.fhir.common.JsonFormat$Parser.<clinit>(JsonFormat.java:887)

at com.google.fhir.common.JsonFormat.getParser(JsonFormat.java:594)

at com.google.fhir.examples.SyntheaToTFRecordsMain$ParseBundleFn.processElement(SyntheaToTFRecordsMain.java:61)


Then I installed protobuf with version 3.7, 3.8, 3.9, 3.10 and 3.11, but I still got this problem. 

I can not downgrade the protobuf because the repository uses TensorFlow which has requirement protobuf>=3.6.1. 

Does anyone have idea?

Thanks,
Iris












Reply all
Reply to author
Forward
0 new messages