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.  [ 1 post ] 
Author Message
 Post subject: NoSuchMethod Exception when change default-lazy to true
PostPosted: Fri Dec 12, 2008 4:03 am 
Beginner
Beginner

Joined: Sat Jan 05, 2008 7:33 am
Posts: 26
I have a perfectly working Hibernate application which uses
<hibernate-mapping default-lazy="false" default-cascade="all" ...

Trying to optimize this application I am trying to have one (for now) of my
class mapping file to use default-lazy="true"

However when the app start I get

08:50:19,978 ERROR [main] (FactoryServer.java:FactoryServer:87) - Can not populate DB: javax.persistence.PersistenceException: No Persistence provider for EntityManager named myFactoryPU: Provider named org.hibernate.ejb.HibernatePersistence threw unexpected exception at create EntityManagerFactory:
java.lang.NoSuchMethodError
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
at net.sf.cglib.core.DebuggingClassWriter.<init>(DebuggingClassWriter.java:47)
at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)

googling at other similar problem they are talking about having an
empty parameter constructor which I do have for this class

Could this be related to some of the fields of the class which are also
persistent objects and which have default-lazy="true"

Please advise
thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.