You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sc <sc...@4info.com> on 2016/12/29 21:56:37 UTC

AWS S3 Timeout Exception

Hi,

  Did anyone happen to resolve S3 timeout exception? It throws an exception
when all files have been processed and starts polling for new files.

<from
uri="aws-s3://zzz-zzz-zz?amazonS3Client=#adobeAmazonS3Client&amp;amazonS3Endpoint=s3.amazonaws.com&amp;prefix=a/s3_&amp;region=us-west-1&amp;deleteAfterRead=false&amp;maxMessagesPerPoll=5"/>
		<setHeader headerName="CamelFileName">
<simple>${header.camelawss3key}</simple> 
			</setHeader> <setHeader headerName="CamelFileLength">
<simple>${header.camelawss3contentlength}</simple> 
			</setHeader>
<header>camelawss3key</header>
<idempotentConsumer messageIdRepositoryRef="aRef">


Exception

 com.amazonaws.http.AmazonHttpClient  - Unable to execute HTTP request:
Timeout waiting for connection from pool
org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for
connection from pool
	at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection(PoolingHttpClientConnectionManager.java:286)
.
.
.

at
com.amazonaws.services.s3.AmazonS3Client.listObjects(AmazonS3Client.java:606)
at org.apache.camel.component.aws.s3.S3Consumer.poll(S3Consumer.java:87)
at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:175)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:102)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)



Any suggesstions would be appreciated.

Thanks,




--
View this message in context: http://camel.465427.n5.nabble.com/AWS-S3-Timeout-Exception-tp5792003.html
Sent from the Camel - Users mailing list archive at Nabble.com.