AWS Java S3 Uploading error: “profile file cannot be null”
问题 I get an exception when trying to upload a file to Amazon S3 from my Java Spring application. The method is pretty simple: private void productionFileSaver(String keyName, File f) throws InterruptedException { String bucketName = "{my-bucket-name}"; TransferManager tm = new TransferManager(new ProfileCredentialsProvider()); // TransferManager processes all transfers asynchronously, // so this call will return immediately. Upload upload = tm.upload( bucketName, keyName, new File("/mypath