java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder. at shaded.cloud-nio.com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)

GitHub | tomwhite | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GCS provider ID must be specified even if not using GCS

    GitHub | 8 months ago | tomwhite
    java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder. at shaded.cloud-nio.com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder. at shaded.cloud-nio.com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)

      at com.google.cloud.ServiceOptions.<init>()
    2. com.google.cloud
      CloudStorageFileSystemProvider.<init>
      1. com.google.cloud.ServiceOptions.<init>(ServiceOptions.java:208)
      2. com.google.cloud.HttpServiceOptions.<init>(HttpServiceOptions.java:153)
      3. com.google.cloud.storage.StorageOptions.<init>(StorageOptions.java:69)
      4. com.google.cloud.storage.StorageOptions.<init>(StorageOptions.java:27)
      5. com.google.cloud.storage.StorageOptions$Builder.build(StorageOptions.java:64)
      6. com.google.cloud.storage.StorageOptions.defaultInstance(StorageOptions.java:91)
      7. com.google.cloud.storage.contrib.nio.CloudStorageFileSystemProvider.<init>(CloudStorageFileSystemProvider.java:141)
      8. com.google.cloud.storage.contrib.nio.CloudStorageFileSystemProvider.<init>(CloudStorageFileSystemProvider.java:136)
      8 frames
    3. Java RT
      ServiceLoader$LazyIterator.nextService
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:408)
      5. java.lang.Class.newInstance(Class.java:438)
      6. java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
      6 frames