Did you ever work out what the problem was here? I'm having the same issue.
Does anyone else know the answer?
Regards,
Nick
gOrr wrote:
>
> Hello.
>
> I'm working with xbean-spring-3.1 in order to customize a Spring XML
> Config
> file.
>
> I'm attempting to map one attributes name, for instance:
>
> package test;
> public myClass {
> private String myAttribute:
> //getter and setter...
> }
>
> My configuration file should be something like:
> <beans namespace_definition>
>
> </beans>
>
> In order to set up this, i'm using this file (META-INF/service/org....):
> package= test
> object= test.myClass
> object.attribute=myAttribute
>
> I received this exception:
> Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
> property 'attribute of bean class [test.myClass]: Bean property
> 'attribute'
> is not writable or has an invalid setter method. Does the parameter type
> of
> the setter match the return type of the getter?
>
>
> I have tried with several xbean-spring version and I always get the same
> result :(
>
> Any idea?
>
> Thanks in advance.
>
>
--
View this message in context:
http://www.nabble.com/problems-mapping-attributes-with-xbean-spring-3.1-tp13002195p22060577.html
Sent from the xbean-user mailing list archive at Nabble.com.