java.lang.RuntimeException: java.lang.RuntimeException: Unable to find factory method com.scotcro.gcr.dataflow.components.pipelines.GoogleCredentialProvider#fromOptions

Stack Overflow | user1121204 | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Using Google Cloud Dataflow how do I run with proper credentials on a GCE Compute instance?

    Stack Overflow | 2 years ago | user1121204
    java.lang.RuntimeException: java.lang.RuntimeException: Unable to find factory method com.scotcro.gcr.dataflow.components.pipelines.GoogleCredentialProvider#fromOptions
  2. 0

    Credential exception in Travis build

    GitHub | 11 months ago | nevillelyh
    java.lang.RuntimeException: Unable to get application default credentials. Please see https://developers.google.com/accounts/docs/application-default-credentials for details on how to specify credentials. This version of the SDK is dependent on the gcloud core component version 2015.02.05 or newer to be able to get credentials from the currently authorized user via gcloud auth.

    Root Cause Analysis

    1. java.lang.RuntimeException

      Unable to find factory method com.scotcro.gcr.dataflow.components.pipelines.GoogleCredentialProvider#fromOptions

      at com.google.cloud.dataflow.sdk.util.InstanceBuilder.buildFromMethod()
    2. com.google.cloud
      ProxyInvocationHandler.invoke
      1. com.google.cloud.dataflow.sdk.util.InstanceBuilder.buildFromMethod(InstanceBuilder.java:224)
      2. com.google.cloud.dataflow.sdk.util.InstanceBuilder.build(InstanceBuilder.java:161)
      3. com.google.cloud.dataflow.sdk.options.GcpOptions$GcpUserCredentialsFactory.create(GcpOptions.java:180)
      4. com.google.cloud.dataflow.sdk.options.GcpOptions$GcpUserCredentialsFactory.create(GcpOptions.java:175)
      5. com.google.cloud.dataflow.sdk.options.ProxyInvocationHandler.getDefault(ProxyInvocationHandler.java:288)
      6. com.google.cloud.dataflow.sdk.options.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:127)
      6 frames
    3. com.sun.proxy
      $Proxy42.getGcpCredential
      1. com.sun.proxy.$Proxy42.getGcpCredential(Unknown Source)
      1 frame
    4. com.google.cloud
      Pipeline.run
      1. com.google.cloud.dataflow.sdk.io.DatastoreIO$Source.getDatastore(DatastoreIO.java:335)
      2. com.google.cloud.dataflow.sdk.io.DatastoreIO$Source.createReader(DatastoreIO.java:320)
      3. com.google.cloud.dataflow.sdk.io.DatastoreIO$Source.createReader(DatastoreIO.java:186)
      4. com.google.cloud.dataflow.sdk.runners.dataflow.BasicSerializableSourceFormat.evaluateReadHelper(BasicSerializableSourceFormat.java:259)
      5. com.google.cloud.dataflow.sdk.io.Read$Bound$1.evaluate(Read.java:123)
      6. com.google.cloud.dataflow.sdk.io.Read$Bound$1.evaluate(Read.java:120)
      7. com.google.cloud.dataflow.sdk.runners.DirectPipelineRunner$Evaluator.visitTransform(DirectPipelineRunner.java:684)
      8. com.google.cloud.dataflow.sdk.runners.TransformTreeNode.visit(TransformTreeNode.java:200)
      9. com.google.cloud.dataflow.sdk.runners.TransformTreeNode.visit(TransformTreeNode.java:196)
      10. com.google.cloud.dataflow.sdk.runners.TransformHierarchy.visit(TransformHierarchy.java:99)
      11. com.google.cloud.dataflow.sdk.Pipeline.traverseTopologically(Pipeline.java:208)
      12. com.google.cloud.dataflow.sdk.runners.DirectPipelineRunner$Evaluator.run(DirectPipelineRunner.java:640)
      13. com.google.cloud.dataflow.sdk.runners.DirectPipelineRunner.run(DirectPipelineRunner.java:354)
      14. com.google.cloud.dataflow.sdk.runners.DirectPipelineRunner.run(DirectPipelineRunner.java:76)
      15. com.google.cloud.dataflow.sdk.Pipeline.run(Pipeline.java:149)
      15 frames
    5. com.scotcro.gcr
      GcrDataflowApp.main
      1. com.scotcro.gcr.dataflow.app.GcrDataflowApp.run(GcrDataflowApp.java:65)
      2. com.scotcro.gcr.dataflow.app.GcrDataflowApp.main(GcrDataflowApp.java:49)
      2 frames