-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: what's wrong with it? help me.
PostPosted: Tue Feb 10, 2004 5:55 am 
Newbie

Joined: Tue Feb 10, 2004 5:50 am
Posts: 1
Hello everyone! anyone meet this question.

net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of its.hibernate.WorkFlow.setTcardbasicinfos

at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:216)

at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2137)

at net.sf.hibernate.loader.Loader.doQuery(Loader.java:239)

at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:132)

at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:830)

at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:850)

at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:57)

at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:49)

at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:420)

at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:2044)

at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1918)

at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1880)

at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:68)

at net.sf.hibernate.type.EntityType.resolveIdentifier(EntityType.java:215)

at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2132)

at net.sf.hibernate.loader.Loader.doQuery(Loader.java:239)

at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:132)

at net.sf.hibernate.loader.Loader.doList(Loader.java:949)

at net.sf.hibernate.loader.Loader.list(Loader.java:940)

at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:833)

at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1475)

at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39)

at its.zp.main(zp.java:51)

Caused by: net.sf.cglib.beans.BulkBeanException

at its.hibernate.WorkFlow$$BulkBeanByCGLIB$$a8fce821.setPropertyValues(<generated>)

at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:211)

... 22 more

Caused by: java.lang.ClassCastException

... 24 more

Exception in thread "main"

in the code the field is int type ,in the database it is int type too.
but i cant understand why ocurr this question.
please give me some help .
thanks a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 10, 2004 5:57 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This not a quiz show:

http://www.hibernate.org/ForumMailingli ... AskForHelp

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 10, 2004 6:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Most likely you have a null value in the db column mapped to the primitive type.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 10, 2004 7:00 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
It must be wrong type mapping for tcardbasicinfos propery.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.