-->
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.  [ 2 posts ] 
Author Message
 Post subject: Javassist Enhancement failed - once again
PostPosted: Sat Oct 03, 2009 4:29 pm 
Senior
Senior

Joined: Mon Jul 07, 2008 4:35 pm
Posts: 141
Location: Berlin
Hi folks,

I know this is a widely discussed issue but probably someone can shed some light on this confusing situation.

Our problem is as follows:
To have our data model extendable and providing type savety we set up an inheritance hierarchy where the entity classes are backed with interfaces specifying all required methods. Only within the first two levels of the hierarchy the interfaces define method signatures. All interfaces in subsequent levels of the hierarchy are empty.

We make heavy use of proxying/lazy loading and polymorphism in the app. So the mapping files specify the interface of each entity class for a proxy. Unfortunately, javassist is not very co-operative and throws exceptions.

We use plain Hibernate from the hibernate3.jar of version 3.3.2.GA and also have javassist.jar included. We've tried with javassist 3.8.0.GA, 3.9.0.GA, and 3.11.0.GA - no difference.

The message in the exceptions indicates the "duplicate method"-problem. This was quite surprising since this issue seemed to be settled since javasisst 3.4 according to the bug tracker.

What can we do to get around this? We did not manage to either make javassist work or switch to cglib as an alternative. There seems to be no setting in the Hibernate configuration (we do programmatic configuration) to achieve this.

CU
Froestel

_________________
Have you tried turning it off and on again? [Roy]


Top
 Profile  
 
 Post subject: Re: Javassist Enhancement failed - once again
PostPosted: Wed Oct 14, 2009 5:51 pm 
Newbie

Joined: Thu Sep 15, 2005 10:04 am
Posts: 14
I am encountering the same issue (duplicate method) and have the same experience that switching to cglib is not possible. So if anyone has an idea that would be great.

Thanks!

gr. Martin


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.