Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Set the S3 bucket to the same region as AmazonS3Client, otherwise it just throws this exception. Check if your bucket name is correct as well.

Solutions on the web

via GitHub by xjodoin
, 1 year ago
java.lang.reflect.InvocationTargetException
via GitHub by jecos
, 1 year ago
java.lang.reflect.InvocationTargetException
via GitHub by AmitTwingo
, 1 year ago
java.lang.reflect.InvocationTargetException
com.amazonaws.services.s3.model.AmazonS3Exception: Status Code: 400, AWS Service: Amazon S3, AWS Request ID: 6D7E03A3816B7A05, AWS Error Code: null, AWS Error Message: Bad Request, S3 Extended Request ID: LJUvlB/fInY3P9pw1dnpMAsKT6RluwL1gJmpeIXTqNGP0IRSluO0HgJkEvLEQLu+Rxj0Z5BWHDo=	at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:798)	at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:421)	at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:232)	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3528)	at com.amazonaws.services.s3.AmazonS3Client.headBucket(AmazonS3Client.java:1031)	at com.amazonaws.services.s3.AmazonS3Client.doesBucketExist(AmazonS3Client.java:994)	at org.apache.hadoop.fs.s3a.S3AFileSystem.initialize(S3AFileSystem.java:154)	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2596)	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:91)	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2630)	at org.apache.hadoop.fs.FileSystem$Cache.getUnique(FileSystem.java:2618)	at org.apache.hadoop.fs.FileSystem.newInstance(FileSystem.java:417)	at com.qubole.streamx.s3.S3Storage.(S3Storage.java:49)