java.lang.NoSuchMethodError: com.google.protobuf.ExtensionRegistry.getAllImmutableExtensionsByExtendedType(Ljava/lang/String;)Ljava/util/Set;

Stack Overflow | orian | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Apache Beam with Flink backend throws NoSuchMethodError on calls to protobuf-java library methods

    Stack Overflow | 6 months ago | orian
    java.lang.NoSuchMethodError: com.google.protobuf.ExtensionRegistry.getAllImmutableExtensionsByExtendedType(Ljava/lang/String;)Ljava/util/Set;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.google.protobuf.ExtensionRegistry.getAllImmutableExtensionsByExtendedType(Ljava/lang/String;)Ljava/util/Set;

      at org.apache.beam.sdk.coders.protobuf.ProtobufUtil.recursivelyAddDescriptors()
    2. org.apache.beam
      PCollection.apply
      1. org.apache.beam.sdk.coders.protobuf.ProtobufUtil.recursivelyAddDescriptors(ProtobufUtil.java:129)
      2. org.apache.beam.sdk.coders.protobuf.ProtobufUtil.getRecursiveDescriptorsForClass(ProtobufUtil.java:63)
      3. org.apache.beam.sdk.coders.protobuf.ProtobufUtil.verifyDeterministic(ProtobufUtil.java:92)
      4. org.apache.beam.sdk.coders.protobuf.ProtoCoder.verifyDeterministic(ProtoCoder.java:258)
      5. org.apache.beam.sdk.transforms.GroupByKey.validate(GroupByKey.java:196)
      6. org.apache.beam.sdk.transforms.GroupByKey.validate(GroupByKey.java:121)
      7. org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:399)
      8. org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:307)
      9. org.apache.beam.sdk.values.PCollection.apply(PCollection.java:154)
      10. org.apache.beam.sdk.transforms.Combine$PerKey.apply(Combine.java:1851)
      11. org.apache.beam.sdk.transforms.Combine$PerKey.apply(Combine.java:1740)
      12. org.apache.beam.sdk.runners.PipelineRunner.apply(PipelineRunner.java:76)
      13. org.apache.beam.runners.flink.FlinkRunner.apply(FlinkRunner.java:196)
      14. org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:400)
      15. org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:307)
      16. org.apache.beam.sdk.values.PCollection.apply(PCollection.java:154)
      17. org.apache.beam.sdk.transforms.Count$PerElement.apply(Count.java:115)
      18. org.apache.beam.sdk.transforms.Count$PerElement.apply(Count.java:100)
      19. org.apache.beam.sdk.runners.PipelineRunner.apply(PipelineRunner.java:76)
      20. org.apache.beam.runners.flink.FlinkRunner.apply(FlinkRunner.java:196)
      21. org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:400)
      22. org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:307)
      23. org.apache.beam.sdk.values.PCollection.apply(PCollection.java:154)
      23 frames
    3. com.mycompany.dataflow
      WordCount$CountWords.apply
      1. com.mycompany.dataflow.WordCount$CountWords.apply(WordCount.java:74)
      2. com.mycompany.dataflow.WordCount$CountWords.apply(WordCount.java:63)
      2 frames
    4. org.apache.beam
      PCollection.apply
      1. org.apache.beam.sdk.runners.PipelineRunner.apply(PipelineRunner.java:76)
      2. org.apache.beam.runners.flink.FlinkRunner.apply(FlinkRunner.java:196)
      3. org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:400)
      4. org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:307)
      5. org.apache.beam.sdk.values.PCollection.apply(PCollection.java:154)
      5 frames
    5. com.mycompany.dataflow
      WordCount.main
      1. com.mycompany.dataflow.WordCount.main(WordCount.java:118)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. flink-clients
      CliFrontend.main
      1. org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:505)
      2. org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:403)
      3. org.apache.flink.client.program.Client.runBlocking(Client.java:248)
      4. org.apache.flink.client.CliFrontend.executeProgramBlocking(CliFrontend.java:866)
      5. org.apache.flink.client.CliFrontend.run(CliFrontend.java:333)
      6. org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1192)
      7. org.apache.flink.client.CliFrontend.main(CliFrontend.java:1243)
      7 frames