camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhzin <rmuh...@gmail.com>
Subject Property Wiring in camel-Blueprint
Date Wed, 22 Jan 2014 11:09:50 GMT
Hi all,

While trying to wire the a property in my blueprint.xml i got the following
error.


blueprint.xml

<bean id="credentialProvider"
class="com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider"/>

    <bean id="sqsClient" class="com.amazonaws.services.sqs.AmazonSQSClient">
        <argument ref="credentialProvider" />
        <property name="setRegion" value="ap-southeast-1"/>
    </bean>

Error :

Caused by:
org.osgi.service.blueprint.container.ComponentDefinitionException: Unable
to find property descriptor setRegion on class
com.amazonaws.services.sqs.AmazonSQSClient
    at
org.apache.aries.blueprint.container.BeanRecipe.getPropertyDescriptor(BeanRecipe.java:954)
    at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:936)
    at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:907)
    at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:888)
    at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:820)
    at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)
    at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
    at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)
    at
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
    at
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:668)
    at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:370)
    at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
    at
org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
    at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)


There a method  setRegion in AmazonWebServiceClient which
the AmazonSQSClient class extends.

Can anyone help me give some pointers.
Thanks
-- 
BR
Muhsin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message