When I create a provider using the following

<jms:provider service="orderservice:orsjmsprovidererr"
                  endpoint="orsProvidererr"                  
                  jmsProviderDestinationName="topic/ORS/OrderError"
                  destinationStyle="topic"
                  connectionFactory="#connectionFactory"
             pubSubDomain="true"
 />

as per http://cwiki.apache.org/SM/servicemix-jms.html

I get the following error (Iam using fuse-esb-3.4.0.2 and spring 2.5.6 jars
in the lib folder)

<loc-message>Could not deploy xbean service unit</loc-message>
</msg-loc-info>
</task-status-msg>
                        <exception-info>
                                <nesting-level>1</nesting-level>
                                <msg-loc-info>
                                        <loc-token/>
                                        <loc-message>Error creating bean
with name 'org.apache.servicemix.jms.endpoints.JmsProviderEndpoint#0'
defined
 in file
[C:\fuse-esb-3.4.0.2\data\smx\service-assemblies\orsesb-assembly\version_2\sus\servicemix-jms\orsesb-jmsprovider-su\xbean.xml]:
Error setting
 property values; nested exception is
org.springframework.beans.NotWritablePropertyException: Invalid property
'destinationStyle' of bean class [org.a
pache.servicemix.jms.endpoints.JmsProviderEndpoint]: Bean property
'destinationStyle' is not writable or has an invalid setter method. Does the
parame
ter type of the setter match the return type of the getter?</loc-message>
                                       
<stack-trace><![CDATA[org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '
org.apache.servicemix.jms.endpoints.JmsProviderEndpoint#0' defined in file
[C:\fuse-esb-3.4.0.2\data\smx\service-assemblies\orsesb-assembly\version_2\
sus\servicemix-jms\orsesb-jmsprovider-su\xbean.xml]: Error setting property
values; nested exception is org.springframework.beans.NotWritablePropertyE
xception: Invalid property 'destinationStyle' of bean class
[org.apache.servicemix.jms.endpoints.JmsProviderEndpoint]: Bean property
'destinationStyle
' is not writable or has an invalid setter method. Does the parameter type
of the setter match the return type of the getter?
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:12
79)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
        at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:87)
        at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
        at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:520)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:349)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:255)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:658)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:63)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:622)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
property 'destinationStyle' of bean class [org.apache.servicemix.jms.endpoi
nts.JmsProviderEndpoint]: Bean property 'destinationStyle' is not writable
or has an invalid setter method. Does the parameter type of the setter matc
h the return type of the getter?
        at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:801)
        at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:651)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:12
76)


-- 
View this message in context: 
http://www.nabble.com/Setting-destinationStyle-throws-error-tp24169911p24169911.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to