geronimo-xbean-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gOrr <>
Subject problems mapping attributes with xbean-spring-3.1
Date Tue, 02 Oct 2007 16:27:55 GMT

I'm working with xbean-spring-3.1 in order to customize a Spring XML Config

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>
  <object attribute="att">

In order to set up this, i'm using this file (META-INF/service/org....):
package= test
object= test.myClass

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.

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