• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javassist trouble but it works

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I am curious. I have an application with a fairly large hierarchy of entities. They are annotated with javax.persistence and Hibernate annotations. Furthermore, there is a parallel hierarchy of proxy interfaces such that each entity class implements a proxy interface that extends a parent proxy interface that is implemented by the parent class of the entity class .

When I start the app, Hibernate configuration works fine but just before building the SessionFactory I get lots of different javassist exceptions and warnings like, i.e. It does not happen with all entities of the hierarchy, just a fraction. On different runs of the application the number of affected entities changes as well as their types. Sometimes a type seems to be fine, next time it causes an exception. Nonetheless, Hibernate manages to build the SessionFactory in the end and everything just works fine.

What is happening here?
Is this due to the order the entities are handled by the configuration?
If so, can I force an order that does not lead to exceptions and warnings? (I don't want the users being troubled by output like that)

Thanks for your attention
CU
Froestel
 
reply
    Bookmark Topic Watch Topic
  • New Topic