• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate in service

 
naresh kumar gupta kapilavai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
iam using hibernate tool to get the data from the database.i wrote code regarding the hibernate in service methode of my servlet(getting session factory etc.)but iam getting the error like this

14:03:38,690 ERROR [BasicLazyInitializer] CGLIB Enhancement failed: serv.Book
java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.setInterceptDuringConstruction(Z)V
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:95)

serv.Book is my pojo class

any one can give the help..please
 
Manuel Palacio
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check that you have a no-argument constructor with at least package visibility.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the ORM forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic