Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-13586

NPE in S3 DefaultS3ClientBuilderFactory (AWS SDK v2)

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.37.0
    • io-java-aws

    Description

      Exception in thread "main" java.lang.NullPointerException: region must not be null.
      [error]     at software.amazon.awssdk.utils.Validate.paramNotBlank(Validate.java:177)
      [error]     at software.amazon.awssdk.regions.Region.of(Region.java:138)
      [error]     at software.amazon.awssdk.regions.Region.of(Region.java:134)
      [error]     at org.apache.beam.sdk.io.aws2.s3.DefaultS3ClientBuilderFactory.createBuilder(DefaultS3ClientBuilderFactory.java:53)
      [error]     at org.apache.beam.sdk.io.aws2.s3.S3FileSystem.<init>(S3FileSystem.java:119)
      [error]     at org.apache.beam.sdk.io.aws2.s3.S3FileSystemRegistrar.fromOptions(S3FileSystemRegistrar.java:40)
      [error]     at org.apache.beam.sdk.io.FileSystems.verifySchemesAreUnique(FileSystems.java:550)
      [error]     at org.apache.beam.sdk.io.FileSystems.setDefaultPipelineOptions(FileSystems.java:540)
      [error]     at org.apache.beam.sdk.PipelineRunner.fromOptions(PipelineRunner.java:47)
      [error]     at org.apache.beam.sdk.Pipeline.create(Pipeline.java:155) 

      This happens when setting an AWS endpoint, but no region even if the file system is not used

      Attachments

        Issue Links

          Activity

            People

              mosche Moritz Mack
              mosche Moritz Mack
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m