problem in servicemix

Caught: org.springframework.beans.factory.BeanCreationException: Error creating

bean with name 'org.apache.servicemix.jbi.container.ActivationSpec' defined in f

ile [D:\servicemix-3.0\examples\FTP_Polling\servicemix.xml]: Error setting prope

rty values; nested exception is org.springframework.beans.NotWritablePropertyExc

eption: Invalid property 'type' of bean class [org.apache.servicemix.jbi.contain

er.ActivationSpec]: Bean property 'type' is not writable or has an invalid sette

r method. Does the parameter type of the setter match the return type of the get

ter?

org.springframework.beans.factory.BeanCreationException: Error creating bean wit

h name 'org.apache.servicemix.jbi.container.ActivationSpec' defined in file [D:\

servicemix-3.0\examples\FTP_Polling\servicemix.xml]: Error setting property valu

es; nested exception is org.springframework.beans.NotWritablePropertyException:

Invalid property 'type' of bean class [org.apache.servicemix.jbi.container.Activ

ationSpec]: Bean property 'type' is not writable or has an invalid setter method

. Does the parameter type of the setter match the return type of the getter?

Caused by: org.springframework.beans.NotWritablePropertyException: Invalid prope

rty 'type' of bean class [org.apache.servicemix.jbi.container.ActivationSpec]: B

ean property 'type' is not writable or has an invalid setter method. Does the pa

rameter type of the setter match the return type of the getter?

at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrappe

rImpl.java:699)

at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrappe

rImpl.java:575)

at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(A

bstractPropertyAccessor.java:49)

at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(

AbstractPropertyAccessor.java:68)

at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(

AbstractPropertyAccessor.java:57)

at org.springframework.beans.factory.support.AbstractAutowireCapableBean

Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:813)

at org.springframework.beans.factory.support.AbstractAutowireCapableBean

Factory.populateBean(AbstractAutowireCapableBeanFactory.java:589)

at org.springframework.beans.factory.support.AbstractAutowireCapableBean

Factory.createBean(AbstractAutowireCapableBeanFactory.java:389)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean

(AbstractBeanFactory.java:256)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean

(AbstractBeanFactory.java:167)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.

preInstantiateSingletons(DefaultListableBeanFactory.java:253)

at org.springframework.context.support.AbstractApplicationContext.refres

h(AbstractApplicationContext.java:332)

at org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init

>(FileSystemXmlApplicationContext.java:150)

at org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init

>(FileSystemXmlApplicationContext.java:101)

at org.apache.servicemix.Main.main(Main.java:80)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)

at org.codehaus.classworlds.Launcher.main(Launcher.java:461)

[3950 byte] By [Praveen_Da] at [2007-10-3 3:00:35]
# 1
Yes?
CeciNEstPasUnProgrammeura at 2007-7-14 20:50:10 > top of Java-index,Java Essentials,Java Programming...
# 2
Bean property 'type' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?Does it?
Lokoa at 2007-7-14 20:50:10 > top of Java-index,Java Essentials,Java Programming...
# 3

Hi...

Thnx for ur reply....actually i m not setting any Bean for running our appln in servicemix.

Now i tried running it by removing the "type" parameter from servicemix.xml file.After this the server s running twice and it too generating d following exception.......................................................

Caught: org.springframework.beans.factory.BeanCreationException: Error creating

bean with name 'filepoller' defined in file [E:\apache-servicemix-3.0-M2-incubat

ing\examples\PollingFtpFile\servicemix.xml]: Invocation of init method failed; n

ested exception is java.lang.IllegalArgumentException: Component name: ID:AD0077

-TRNG3-3072-1155945463184-0:0 is bound to an object which is not a JBI component

, it is of type: com.PollFiles.PollFtpFiles

org.springframework.beans.factory.BeanCreationException: Error creating bean wit

h name 'filepoller' defined in file [E:\apache-servicemix-3.0-M2-incubating\exam

ples\PollingFtpFile\servicemix.xml]: Invocation of init method failed; nested ex

ception is java.lang.IllegalArgumentException: Component name: ID:AD0077-TRNG3-3

072-1155945463184-0:0 is bound to an object which is not a JBI component, it is

of type: com.PollFiles.PollFtpFiles

Caused by: java.lang.IllegalArgumentException: Component name: ID:AD0077-TRNG3-3

072-1155945463184-0:0 is bound to an object which is not a JBI component, it is

of type: com.PollFiles.PollFtpFiles

Plz consider d above prob and give me a solution reg this........

Praveen_Da at 2007-7-14 20:50:10 > top of Java-index,Java Essentials,Java Programming...
# 4

Hi..

i m not using the bean in my appln for running it in servicemix.If i remove the "type" parameter from servicemix.xml then the server s executed twice & also the following exception s thrown.......plz help us in this regard to overcome this prob..............

Caught: org.springframework.beans.factory.BeanCreationException: Error creating

bean with name 'filepoller' defined in file [E:\apache-servicemix-3.0-M2-incubat

ing\examples\PollingFtpFile\servicemix.xml]: Invocation of init method failed; n

ested exception is java.lang.IllegalArgumentException: Component name: filePolle

r is bound to an object which is not a JBI component, it is of type: com.PollFil

es.PollFtpFiles

org.springframework.beans.factory.BeanCreationException: Error creating bean wit

h name 'filepoller' defined in file [E:\apache-servicemix-3.0-M2-incubating\exam

ples\PollingFtpFile\servicemix.xml]: Invocation of init method failed; nested ex

ception is java.lang.IllegalArgumentException: Component name: filePoller is bou

nd to an object which is not a JBI component, it is of type: com.PollFiles.PollF

tpFiles

Praveen_Da at 2007-7-14 20:50:10 > top of Java-index,Java Essentials,Java Programming...