-->
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.  [ 3 posts ] 
Author Message
 Post subject: ERROR BasicLazyInitializer:103 - CGLIB Enhancement failed
PostPosted: Tue Jul 12, 2005 10:27 am 
Newbie

Joined: Tue May 31, 2005 8:48 am
Posts: 11
Location: Blumenau - Santa Catarina - Brasil
Hello

I try migration HB 2.1 to HB 3.0 but, this error occours when i try run application. I use hibernate.properties. Message complete this :

ERROR BasicLazyInitializer:103 - CGLIB Enhancement failed: br.com.tron_orc.smartcotacao.modelo.CondicoesItemProposta
java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given
at net.sf.cglib.proxy.Enhancer.emitConstructors(Enhancer.java:682)

Any tip what happen occour? (Sorry, my english?)

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 13, 2005 1:33 pm 
Newbie

Joined: Tue May 31, 2005 8:48 am
Posts: 11
Location: Blumenau - Santa Catarina - Brasil
Sorry my friends, i don't understand message in console of eclipse.
I need constructor public with no arguments.
Example:

public Teste(Object o){

}

private Teste(){
this(null);
}

The code above not function, you need make this:

public Teste(Object o){

}

public Teste(){
this(null);
}


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 1:33 pm 
Newbie

Joined: Tue May 31, 2005 8:48 am
Posts: 11
Location: Blumenau - Santa Catarina - Brasil
my friends

if you add in tag <hibernate-mapping> default-lazy="false" , the problem are resolved, you don't need declare constructor method how private


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