You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by bhuvi <kb...@gmail.com> on 2006/08/18 11:38:40 UTC
BeanCreationException
hi all
i created a simple file polling component and tried running that in
servicemix.
all the files in the directory which i specified are getting polled but
still i get the following exception.
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating
bean with name 'org.apache.servicemix.jbi.container.ActivationSpec' defined
in f
ile
[E:\apache-servicemix-3.0-M2-incubating\examples\PollingFtpFile\servicemix.x
ml]: Error setting property values; nested exception is
org.springframework.bean
s.NotWritablePropertyException: Invalid property 'type' of bean class
[org.apach
e.servicemix.jbi.container.ActivationSpec]: Bean property 'type' is not
writable
or has an invalid setter method. Does the parameter type of the setter
match th
e return type of the getter?
my servicemix.xml has the following lines.
<sm:activationSpecs>
<sm:activationSpec componentName="PollFtpFiles"
service="foo:ReadFiles" type="com.PollFiles.PollFtpFiles">
<sm:component>
<bean id="readfiles" class="com.PollFiles.PollFtpFiles">
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
is there something to do with type specified for activationSpec?
--
View this message in context: http://www.nabble.com/BeanCreationException-tf2126292.html#a5866696
Sent from the ActiveMQ - User forum at Nabble.com.
Re: BeanCreationException
Posted by James Strachan <ja...@gmail.com>.
You should maybe ask this question on the servicemix mailing list :)
On 8/18/06, bhuvi <kb...@gmail.com> wrote:
>
> hi all
>
> i created a simple file polling component and tried running that in
> servicemix.
> all the files in the directory which i specified are getting polled but
> still i get the following exception.
>
>
> Caught: org.springframework.beans.factory.BeanCreationException: Error
> creating
> bean with name 'org.apache.servicemix.jbi.container.ActivationSpec' defined
> in f
> ile
> [E:\apache-servicemix-3.0-M2-incubating\examples\PollingFtpFile\servicemix.x
> ml]: Error setting property values; nested exception is
> org.springframework.bean
> s.NotWritablePropertyException: Invalid property 'type' of bean class
> [org.apach
> e.servicemix.jbi.container.ActivationSpec]: Bean property 'type' is not
> writable
> or has an invalid setter method. Does the parameter type of the setter
> match th
> e return type of the getter?
>
>
> my servicemix.xml has the following lines.
>
>
> <sm:activationSpecs>
>
> <sm:activationSpec componentName="PollFtpFiles"
> service="foo:ReadFiles" type="com.PollFiles.PollFtpFiles">
> <sm:component>
> <bean id="readfiles" class="com.PollFiles.PollFtpFiles">
> </bean>
> </sm:component>
>
> </sm:activationSpec>
>
> </sm:activationSpecs>
>
> is there something to do with type specified for activationSpec?
>
> --
> View this message in context: http://www.nabble.com/BeanCreationException-tf2126292.html#a5866696
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>
--
James
-------
http://radio.weblogs.com/0112098/