• Post Reply Bookmark Topic Watch Topic
  • New Topic

Javassist trouble but it works  RSS feed

Andreas Erber
Posts: 20
  • Mark post as helpful
  • send pies
  • 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!