tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xph <...@pfa.dk>
Subject Re: AbstractMethodError
Date Thu, 15 May 2008 13:51:53 GMT


xph wrote:
> 
> Thanks, you are right.  Mine was a similar problem - asm 1.5.3 further up
> the classpath.  
> 
> Trouble is, now that I replace 1.5.3 with 2.2.3 I get the following
> hibernate exception:
> 
> Exception in thread "main" java.lang.ExceptionInInitializerError
> 	at
> dk.pfa.tf.executiondata.ExecutionDataGateway.<clinit>(ExecutionDataGateway.java:36)
> 	at dk.pfa.tf.core.TestCase.<init>(TestCase.java:75)
> 	at
> dk.pfa.tf.config.TestCaseConfigLoader.load(TestCaseConfigLoader.java:23)
> 	at
> dk.pfa.tf.core.TestControllerImpl.runTestCase(TestControllerImpl.java:27)
> 	at dk.pfa.tf.core.TestCaseExecutor.main(TestCaseExecutor.java:18)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
> Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor
> 	at
> net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:165)
> 	at
> net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
> 	at
> net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
> 	at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
> 	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
> 	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
> 	at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
> 	at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:69)
> 	at
> org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)
> 	at
> org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
> 	at
> org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
> 	at
> org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135)
> 	at
> org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
> 	at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56)
> 	at
> org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295)
> 	at
> org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
> 	at
> org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
> 	at
> org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
> 	at
> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
> 	at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
> 	at
> dk.pfa.tf.executiondata.ExecutionDataGateway.<clinit>(ExecutionDataGateway.java:33)
> 	... 9 more
> 
> The CodeVisitor class no longer exists in 2.2.3.
> 
> How did you get around this?
> 
> Paul
> 
> 

To solve the CodeVisitor problem use cglib_nodep.jar instead of normal
cglib.jar (and possibly asm-all.jar).  More info here:
http://forum.springframework.org/archive/index.php/t-26713.html

-- 
View this message in context: http://www.nabble.com/AbstractMethodError-tp17252091p17253713.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message