Amazon S3 for java 400 bad request

private static AmazonS3 getConnect() {
        if (connection !=null) {
            return connection;
        }
        AWSCredentials credentials = null;
        credentials = new BasicAWSCredentials(AccessKey, SecrectKey);
        ClientConfiguration clientConfig = new ClientConfiguration();
        clientConfig.setProtocol(Protocol.HTTP);
        connection = new AmazonS3Client(credentials, clientConfig);
        connection.setEndpoint(host);
        return connection;
}



public static void main(String[] args) {

        AmazonS3 connection = getConnect();
        //boolean a = checkBucketExists(connection, "hello_bucket");
        //System.out.println(a==true);
        //createBucket("myBucket");
        Bucket bucket = createBucket("bucketName");
        List<Bucket> buckets = connection.listBuckets();
    }

Exception in thread "main" com.amazonaws.services.s3.model.AmazonS3Exception: Bad Request (Service: Amazon S3; Status Code: 400; Error Code: 400 Bad Request; Request ID: tx000000000000000000003-0059daecd1-1078-default), S3 Extended Request ID: nul