• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Hibernate Error - "exception setting property value with CGLIB"

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why are you mapping a Set for a property that is a List?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic