Before writing my own custom implementation, I have been googling for a complete example of a simple tree-like JTree/JDialog that allows me to dynamically load and expand the contents of a S3 bucket or sub-S3-object-keys. In other words, I don’t want to recursively prefetch all the objects from different buckets beforehand and populate a JTree. The reason is that there
Tag: amazon-s3
AWS S3 doesObjectExist costs
AWS S3 Java SDK provides a method doesObjectExist() to check if an object exists in S3. What operation does it use internally? Is it GET, LIST, or HEAD ? My concern is mainly related to its costs. From S3 documentation the costs of US west Oregon are- PUT, COPY, POST, or LIST Requests $0.005 per 1,000 requests GET, SELECT and
AWS error downloading object from S3, “profile file cannot be null”
I’ve already seen this, but there was no answer to explain my problem. I first used the sample provided here (GetObject class), and it worked immediately on my desktop. However, my friend could not get it to work on his machine, nor will it work on our EC2 instance. It was mentioned that there are to be credentials files specified,
S3 link with longer expiration
I am generating a pre-signed link using the java sdk for a client. We have new requirements to allow the links to remain active for at least 30 days. When I set the expiration longer I get the below error: Requests that are pre-signed by SigV4 algorithm are valid for at most 7 days I need to determine a way
How to download GZip file from S3?
I have looked at both AWS S3 Java SDK – Download file help and Working with Zip and GZip files in Java. While they provide ways to download and deal with files from S3 and GZipped files respectively, these do not help in dealing with a GZipped file located in S3. How would I do this? Currently I have: Clearly,
How should I handle “java.net.SocketException: Connection reset” in multithread AWS S3 file upload?
I have a ThreadPoolExecutorService to which I’m submitting runnable jobs that are uploading large (1-2 GB) files to Amazon’s S3 file system, using the AWS Java SDK. Occasionally one of my worker threads will report a java.net.SocketException with “Connection reset” as the cause and then die. AWS doesn’t use checked exceptions so I actually can’t catch SocketException directly—it must be
Get URL(link) of a public S3 object programmatically
I am storing one public object in AWS S3 bucket using given java API in my server Now i need to return back the public URL of the S3 object to my client Till now i have’nt found any API call that can return the public URL(or link field) of a S3 object Is there any way to get the
AWS Error Message: A conflicting conditional operation is currently in progress against this resource
I’m getting this error intermittently. I have a program that uses the java aws sdk and loads over the 10s of thousands of small files to s3. I see this error intermittently. Could not find any helpful answer after doing a quick search on the internet. Note the calling program is single threaded. The underlying aws java sdk does seem
amazon s3 upload file time out
I have a JPG file with 800KB. I try to upload to S3 and keep getting timeout error. Can you please figure what is wrong? 800KB is rather small for upload. Error Message: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed. HTTP Status Code: 400 AWS
Amazon S3 upload file and get URL
Is it possible to upload a txt/pdf/png file to Amazon S3 in a single action, and get the uploaded file URL as the response? If so, is AWS Java SDK the right library that I need to add in my java struts2 web application? Please suggest me a solution for this. Answer To make the file public before uploading you