I'll guess that Hibernate tries to assign an object via setPropertyValues where the types does not match.

What is the type defined in the hbm.xml and what is the code/definition of setPropertyValues ? That would make it easier to help.

/max

p.s. this kind of questions are for the forum - not the devel list ;)

Brian Topping wrote:
Hi all,

I'm getting the following error and looking for experience from others on the
best way to debug it:

java.lang.ClassCastException
        at
org.dentaku.modules.general.entity.ContactMetaClass4.setPropertyValues(<gener
ated>)
        at
net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(Abstract
EntityPersister.java:162)
        at
net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:1961)
        at net.sf.hibernate.loader.Loader.doFind(Loader.java:196)
        at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:602)
        at
net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:102)
        at
net.sf.hibernate.impl.SessionImpl.initialize(SessionImpl.java:2897)



------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to