We help IT Professionals succeed at work.
private void submitCallablesWithExecutor()
				throws InterruptedException, ExecutionException, TimeoutException {

			ExecutorService executorService = null;

			try {
				executorService = Executors.newCachedThreadPool();

				Future<String> task1Future = executorService.submit(new Callable<String>() {

					public String call() {
						try {
							processExportRequest(xmlPutRequest_, customizedRequest_, response_);
							return "Success";
						} catch (Exception ex) {
							return ex.getMessage();

			} finally {

				try {
					if (!executorService.awaitTermination(800, TimeUnit.MILLISECONDS)) {
				} catch (InterruptedException e) {

Open in new window

within processExportRequest I am calling upload to S3.  I have tried both S3Client and S3AsyncClient.  In both cases, I am getting following error:

Failed to upload to S3: java.lang.IllegalStateException: Interrupted waiting to refresh the value.

I don't see anywhere in my code that's calling Thread.interrupt(), and everything else seems to work fine, just not S3 upload.  Maybe the multithreaded nature of Java Future is not compatible with AWS SDK?  Thanks.
I currently store graphic files on a network drive external to my SQL Server database. I use an Access front end connected via ODBC to run several reports. A field in the database stores the pathname. The graphics are displayed in various MS Access reports by referencing the pathname in an image control.
   Me.imgStemGraphic.Picture = Me.txtItemFileName

However, we are losing the network drive. Its files are being moved to Sharepoint. We are considering two options: (a) move the files to Amazon S3 or (b) store the graphics in a binary field.

From what I've read, it looks like I should be able to reference the Amazon S3 files so they appear in my reports. Is that true? If so, how do I set that up?

If I store the graphics in a binary field, can I display them in a report control? If so, how would I do that?
Can I connect my MS Access front end to files stored in Amazon S3 buckets?

I have an MS Access frontend is connected to an MS SQL Server backend. Among many other things, the Access frontend creates reports. VBA code within the reports currently display graphic files stored on a local network drive. The backend stores the pathnames of the graphic files. We want to move the graphic files either to a BLOB field or to Amazon as files in its S3 buckets. If we use S3, I assume we would store the file location (URL?) in a text field.

However, I don't know whether Access will be able to access and display the graphic files stored in Amazon S3. Can this be done? If so, how? Is there an API that accomplishes this?
Is there a S3 API that can help me measure the time it takes for replication across two data centers?

I am trying to read the metadata (REPLICATED, PENDING, etc) to measure  the time. But the status always returns null to me.

Does this work only with CRR?
Top Experts In

No Top Experts for this time period. Answer questions to earn the title!