Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.1.8
Mapping documents:
<class name="Foo" lazy="true">
...
</class>
Code between sessionFactory.openSession() and session.close():
foo=session.get(id);
assertTrue(foo instanceof HibernateProxy);//foo is a proxy
newFoo=org.apache.commons.beanutils.BeanUtils.cloneBean(foo);//error!
Full stack trace of any exception that occurs:
java.lang.NoSuchMethodException: Property 'callback' has no getter method
at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1180)
at org.apache.commons.beanutils.PropertyUtils.copyProperties(PropertyUtils.java:318)
at org.apache.commons.beanutils.BeanUtils.cloneBean(BeanUtils.java:167)
Name and version of the database you are using:
oracle9i
The generated SQL (show_sql=true):
none
Debug level Hibernate log excerpt:
none
Exception occures when cloning a lazy-load-persistent object by BeanUtils.
I think this error comes from CGLib or BeanUtils, not Hibernate,
but developer always use BeanUtils and Hibernate together.
Any suggestion?
Giang