Hi Neeraj

The value of the property "attributeNames" really refers to an object in the 
registry just like amazonSQSClient.

So you need to have something like:
registry.put("All", Collections.singletonList("All"));

It may be less confusing if you renamed the value to something like 
attributeList:

registry.put("attributeList", Collections.singletonList("All"));
aws-sqs://product-scraper-file-list?amazonSQSClient=%23amazonSQSClient&attributeNames=attributeList&deleteAfterRead=false&maxMessagesPerPoll=1&visibilityTimeout=200

med venlig hilsen / Best regards,
Morten Knudsen

-----Original Message-----
From: neeraj [mailto:neerajkrchau...@yahoo.com] 
Sent: 23. december 2014 09:38
To: users@camel.apache.org
Subject: Camel SQS interface throw error with attributeNames as parameter

Trying to fetch message attributes, making use of URI below 
aws-sqs://product-file-list?amazonSQSClient=#amazonSQSClient&deleteAfterRead=false&maxMessagesPerPoll=1&visibilityTimeout=200&

Getting exception as follows

org.apache.camel.FailedToCreateRouteException: Failed to create route
route1: Route(route1)[[From[aws-sqs://product-file-list?amaz... because of 
Failed to resolve endpoint:
aws-sqs://product-scraper-file-list?amazonSQSClient=%23amazonSQSClient&attributeNames=All&deleteAfterRead=false&maxMessagesPerPoll=1&visibilityTimeout=200
due to: Could not find a suitable setter for property: attributeNames as there 
isn't a setter method with same type: java.lang.String nor type conversion 
possible: No type converter available to convert from type:
java.lang.String to the required type: java.util.Collection with value All






--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-SQS-interface-throw-error-with-attributeNames-as-parameter-tp5761002.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to