Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

upgrade to hibernate 3.0

  Asked By: Bill    Date: Sep 17    Category: Java    Views: 1311
  

I have a sample program that works with hibernate 2.0.

I tried to upgrade from hibernate 2.0 to 3.0.

But now, when i run it, i hit to the following exceptions :

Jun 15, 2006 4:19:24 PM org.hibernate.proxy.CGLIBLazyInitializer getProxyFactory
SEVERE: CGLIB Enhancement failed: com.dp.ismn.troubleticket.fe.persistance.busobjs.TtTroublrRepairingInfoBO
java.lang.NoClassDefFoundError: org/objectweb/asm/Type
at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66)
at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory
(CGLIBLazyInitializer.java:116)
at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate
(CGLIBProxyFactory.java:41)
at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory
(PojoEntityTuplizer.java:161)
at org.hibernate.tuple.AbstractEntityTuplizer.<init>
(AbstractEntityTuplizer.java:131)
at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>
(AbstractEntityPersister.java:412)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>
(SingleTableEntityPersister.java:108)
at org.hibernate.persister.PersisterFactory.createClassPersister
(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
at com.ms.narsis.firstapp.fe.persistance.buspros.PersistenceManager.buildSessionFactory
(PersistenceManager.java:38)
at com.ms.narsis.firstapp.fe.persistance.buspros.PersistenceManager.init
(PersistenceManager.java:28)
at com.ms.narsis.firstapp.fe.persistance.buspros.TtTestTroubleBP.selectAll
(TtTestTroubleBP.java:25)
at com.ms.narsis.firstapp.fe.communcation.feserver.TTSwitchInfoServerFE.init
(TTSwitchInfoServerFE.java:44)
at com.adventnet.nms.startnms.MainSocketServerFE.startMainSocketSession
(MainSocketServerFE.java:174)
at com.adventnet.nms.startnms.MainSocketServerFE.run
(MainSocketServerFE.java:127)
at java.lang.Thread.run(Unknown Source)
Jun 15, 2006 4:19:24 PM org.hibernate.tuple.PojoEntityTuplizer buildProxyFactory
WARNING: could not create proxy factory for: com.ms.narsis.firstapp.fe.persistance.busobjs.TestTroubleInfoBO
org.hibernate.HibernateException: CGLIB Enhancement failed: com.ms.narsis.firstapp.fe.persistance.busobjs.TestTroubleInfoBO
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory
(CGLIBLazyInitializer.java:132)
at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate
(CGLIBProxyFactory.java:41)
at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory
(PojoEntityTuplizer.java:161)
at org.hibernate.tuple.AbstractEntityTuplizer.<init>
(AbstractEntityTuplizer.java:131)
at org.hibernate.tuple.PojoEntityTuplizer.<init>
(PojoEntityTuplizer.java:55)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>
(AbstractEntityPersister.java:412)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>
(SingleTableEntityPersister.java:108)
at org.hibernate.persister.PersisterFactory.createClassPersister
(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
at com.ms.narsis.firstapp.fe.persistance.buspros.PersistenceManager.buildSessionFactory
(PersistenceManager.java:38)
at com.ms.narsis.firstapp.fe.persistance.buspros.PersistenceManager.init
(PersistenceManager.java:28)
at com.ms.narsis.firstapp.fe.persistance.buspros.TtTroubleTicketBP.selectAll
(TtTestTroubleBP.java:25)
at com.ms.narsis.firstapp.fe.communcation.feserver.TTSwitchInfoServerFE.init
(TTSwitchInfoServerFE.java:44)
at com.adventnet.nms.startnms.MainSocketServerFE.startMainSocketSession
(MainSocketServerFE.java:174)
at com.adventnet.nms.startnms.MainSocketServerFE.run
(MainSocketServerFE.java:127)
at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type
at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
at net.sf.cglib.core.KeyFactory.<clinit>(KeyFactory.java:66)
at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory
(CGLIBLazyInitializer.java:116)
... 18 more

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Sean Grant     Answered On: Sep 17

It seems that cglib-fullXXX.jar is not in your path or its version is not what hibernate  3.0 requires. Refer to the following document if you need a complete guide for your migration.



http://www.hibernate.org/250.html

 
Didn't find what you were looking for? Find more on upgrade to hibernate 3.0 Or get search suggestion and latest updates.




Tagged: