I've never heard of @Version. I very much doubt that Aegis sees it.

What version of CXF are you using? Could you please post a self-contained
test case to Jira?


On Mon, Apr 14, 2008 at 10:03 PM, Mick Knutson <[EMAIL PROTECTED]>
wrote:

> I am getting this error now:
>
> *INFO: Interceptor has thrown exception, unwinding now
> java.lang.RuntimeException: org.apache.cxf.aegis.DatabindingException: No
> write method for property {http://domain.baselogic.com}version in class
>  com.baselogic.domain.Address
>        at
>
> org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:92)
>        at
>
> org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:44)
> *
> Here is my address object and versioned objects:
>
> *Address:*
> [EMAIL PROTECTED]
> @Table(name = "address")
> public class Address extends IdentifiedObject implements Serializable {
>
>    private static final long serialVersionUID = 3617859655330969141L;
>    protected String address;
>    protected String city;
>    protected String province;
>    protected String country;
>    protected String postalCode;
>
>    public Address() {
>    }
>
>    public Address(Long id) {
>        setId(id);
>    }
>
> *
>
> *VersionedObject:
> [EMAIL PROTECTED]
> public class VersionedObject implements Serializable {
>    private static final long serialVersionUID = 1L;
>
>    protected Integer version;
>
>    @Version
>    public Integer getVersion() {
>        return version;
>    }
>
>    protected void setVersion(Integer version) {
>        this.version = version;
>    }
>
> }
> *
>
>
> So what is the issue with @Version?
> When I remove this set/get method, everything is fine.
>
>
>
> --
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.linkedin.com/in/mickknutson
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
>

Reply via email to