• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Error - "exception setting property value with CGLIB"

 
Leticia Barbalho
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

Can someone help me to find out what's this error, in hibernate?




My mpProducaoList is:



And my mapping, which is where I suppose the error is, is like:



What is wrong when setting the field?

[editied to improve formatting - Paul Sturrock]
[ January 19, 2006: Message edited by: Paul Sturrock ]
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The exception message says:

set hibernate.cglib.use_reflection_optimizer=false for more info


Have you tried changing that setting? What additional information do you get?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you mapping a Set for a property that is a List?
 
Otilia Marcu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you solved this issue? Please tell me how?

I get the sam error:

org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.irom.vo.Person.setCvCredentials.

Chamade
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Otilia Marcu, see my last comment. That is (most probably) why he was seeing the exception. Assuming your code makes the same mistake then you know how to fix it. If it doesn't, please start a new topic explaining your problem in a bit more detail.
 
Syed Shahul
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am also getting same error!....

after digging half a day i found that we should not let any field which should not be null.

just check your database table, you may not check the not null option for any fields which should not be null like for int data type it should not allow null.

hope i answered your question.
 
hari patel
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was also getting same error and it get resolved.
That error resolved when I changed the hbm.xml file.

I just changed the sequence of the declaration of one of the filed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic