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)
at
net.sf.hibernate.collection.PersistentCollection.getInitialValue(PersistentCo
llection.java:128)
at
net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollec
tionType.java:74)
at
net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCo
llectionType.java:177)
at
net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:1959)
at net.sf.hibernate.loader.Loader.doFind(Loader.java:196)
at net.sf.hibernate.loader.Loader.find(Loader.java:620)
at
net.sf.hibernate.hql.QueryTranslator.find(QueryTranslator.java:928)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1343)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1322)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1314)
at
org.dentaku.modules.general.entity.Folder.findByParentKey(Folder.java:25)
Seems like there is something the generated code in a CGLib proxy doesn't
like, presumably one of the setters doesn't have the right type.
What's the best way to debug something like this? I have CGLib built from
source so I can debug into it, but the problem is happening in generated
code. I see where the code is being generated, but obviously that doesn't do
much good.
I could stare at the POJO and the .hbm for a long while hope something comes
clear, but that seems rather indeterminate. Or is that the best way?
thanks,
-b
-------------------------------------------------------
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