java.lang.NullPointerException: null uri host. This can be caused by unencoded / in the password string

Apache's JIRA Issue Tracker | Stuart Sierra | 8 years ago
  1. 0

    When using URLs of the form s3://ID:SECRET@BUCKET/ at the command line, distcp fails if the SECRET contains a slash, even when the slash is URL-encoded as %2F. Say your AWS Access Key ID is RYWX12N9WCY42XVOL8WH And your AWS Secret Key is Xqj1/NMvKBhl1jqKlzbYJS66ua0e8z7Kkvptl9bv And your bucket is called "mybucket" You can URL-encode the Secret KKey as Xqj1%2FNMvKBhl1jqKlzbYJS66ua0e8z7Kkvptl9bv But this doesn't work: {noformat} $ bin/hadoop distcp file:///source s3://RYWX12N9WCY42XVOL8WH:Xqj1%2FNMvKBhl1jqKlzbYJS66ua0e8z7Kkvptl9bv@mybucket/dest 08/07/09 15:05:22 INFO util.CopyFiles: srcPaths=[file:///source] 08/07/09 15:05:22 INFO util.CopyFiles: destPath=s3://RYWX12N9WCY42XVOL8WH:Xqj1%2FNMvKBhl1jqKlzbYJS66ua0e8z7Kkvptl9bv@mybucket/dest 08/07/09 15:05:23 WARN httpclient.RestS3Service: Unable to access bucket: mybucket org.jets3t.service.S3ServiceException: S3 HEAD request failed. ResponseCode=403, ResponseMessage=Forbidden at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:339) ... With failures, global counters are inaccurate; consider running with -i Copy failed: org.apache.hadoop.fs.s3.S3Exception: org.jets3t.service.S3ServiceException: S3 PUT failed. XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message> at org.apache.hadoop.fs.s3.Jets3tFileSystemStore.createBucket(Jets3tFileSystemStore.java:141) ... {noformat}

    Apache's JIRA Issue Tracker | 8 years ago | Stuart Sierra
    java.lang.NullPointerException: null uri host. This can be caused by unencoded / in the password string
  2. 0

    When using URLs of the form s3://ID:SECRET@BUCKET/ at the command line, distcp fails if the SECRET contains a slash, even when the slash is URL-encoded as %2F. Say your AWS Access Key ID is RYWX12N9WCY42XVOL8WH And your AWS Secret Key is Xqj1/NMvKBhl1jqKlzbYJS66ua0e8z7Kkvptl9bv And your bucket is called "mybucket" You can URL-encode the Secret KKey as Xqj1%2FNMvKBhl1jqKlzbYJS66ua0e8z7Kkvptl9bv But this doesn't work: {noformat} $ bin/hadoop distcp file:///source s3://RYWX12N9WCY42XVOL8WH:Xqj1%2FNMvKBhl1jqKlzbYJS66ua0e8z7Kkvptl9bv@mybucket/dest 08/07/09 15:05:22 INFO util.CopyFiles: srcPaths=[file:///source] 08/07/09 15:05:22 INFO util.CopyFiles: destPath=s3://RYWX12N9WCY42XVOL8WH:Xqj1%2FNMvKBhl1jqKlzbYJS66ua0e8z7Kkvptl9bv@mybucket/dest 08/07/09 15:05:23 WARN httpclient.RestS3Service: Unable to access bucket: mybucket org.jets3t.service.S3ServiceException: S3 HEAD request failed. ResponseCode=403, ResponseMessage=Forbidden at org.jets3t.service.impl.rest.httpclient.RestS3Service.performRequest(RestS3Service.java:339) ... With failures, global counters are inaccurate; consider running with -i Copy failed: org.apache.hadoop.fs.s3.S3Exception: org.jets3t.service.S3ServiceException: S3 PUT failed. XML Error Message: <?xml version="1.0" encoding="UTF-8"?><Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message> at org.apache.hadoop.fs.s3.Jets3tFileSystemStore.createBucket(Jets3tFileSystemStore.java:141) ... {noformat}

    Apache's JIRA Issue Tracker | 8 years ago | Stuart Sierra
    java.lang.NullPointerException: null uri host. This can be caused by unencoded / in the password string
  3. 0

    Microservice properties can't be found in Intellij Idea on Mac (with README defaults)

    GitHub | 2 years ago | piotrpietrzak
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertySourceBootstrapConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.List org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.propertySourceLocators; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileSystemLocator' defined in com.ofg.infrastructure.property.ExternalPropertiesConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ofg.infrastructure.property.FileSystemLocator]: Factory method 'fileSystemLocator' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appCoordinates' defined in com.ofg.infrastructure.property.ExternalPropertiesConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ofg.infrastructure.property.AppCoordinates]: Factory method 'appCoordinates' threw exception; nested exception is java.lang.NullPointerException: No APP_ENV property found. Good candidates are: 'dev', 'prod-01', etc.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wont load

    GitHub | 1 year ago | hamsterfat
    java.lang.NullPointerException: Unknown locale: en (Possible causes: plugin does not have it or was reloaded)
  6. 0

    GitHub comment 3876#152867960

    GitHub | 1 year ago | spragues-trulia
    java.lang.NullPointerException: maxSize is null

  1. kjhdofjosvs 10 times, last 2 weeks ago
  2. davidvanlaatum 4 times, last 1 month ago
  3. davidvanlaatum 3 times, last 7 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NullPointerException

    null uri host. This can be caused by unencoded / in the password string

    at java.util.Objects.requireNonNull()
  2. Java RT
    Objects.requireNonNull
    1. java.util.Objects.requireNonNull(Objects.java:228)
    1 frame
  3. Hadoop
    S3xLoginHelper.buildFSURI
    1. org.apache.hadoop.fs.s3native.S3xLoginHelper.buildFSURI(S3xLoginHelper.java:60)
    1 frame
  4. Apache Hadoop Amazon Web Services support
    S3AFileSystem.initialize
    1. org.apache.hadoop.fs.s3a.S3AFileSystem.initialize(S3AFileSystem.java:199)
    1 frame
  5. Hadoop
    FsShell.main
    1. org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2793)
    2. org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:101)
    3. org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2830)
    4. org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2812)
    5. org.apache.hadoop.fs.FileSystem.get(FileSystem.java:389)
    6. org.apache.hadoop.fs.Path.getFileSystem(Path.java:294)
    7. org.apache.hadoop.fs.shell.PathData.expandAsGlob(PathData.java:325)
    8. org.apache.hadoop.fs.shell.Command.expandArgument(Command.java:235)
    9. org.apache.hadoop.fs.shell.Command.expandArguments(Command.java:218)
    10. org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:103)
    11. org.apache.hadoop.fs.shell.Command.run(Command.java:165)
    12. org.apache.hadoop.fs.FsShell.run(FsShell.java:315)
    13. org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
    14. org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
    15. org.apache.hadoop.fs.FsShell.main(FsShell.java:373)
    15 frames