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:33:04 GMT


Martin Vysny-2 wrote:
> 
> 
> Hi,
>   we had issues with this bug as well, when we used hibernate 3.2.4ga in
> our project as a dependency in Maven2. Hibernate pulled asm-1.5.3 (I
> think) which Maven happily used instead of asm-2.2.3. First, try to
> check if the 2.2.3 version is really the version on your classpath (for
> example by executing Maven2 with the -X parameter). We solved it by
> excluding the asm dependency from Hibernate:
> <dependency>
> 	<groupId>org.hibernate</groupId>
> 	<artifactId>hibernate</artifactId>
> 	<version>3.2.4.ga</version>
> 	<exclusions>
> 		<exclusion>
> 			<groupId>cglib</groupId>
> 			<artifactId>cglib</artifactId>
> 		</exclusion>
> 		<exclusion>
> 			<groupId>asm</groupId>
> 			<artifactId>asm</artifactId>
> 		</exclusion>
> 		<exclusion>
> 			<groupId>asm</groupId>
> 			<artifactId>asm-attrs</artifactId>
> 		</exclusion>
> 	</exclusions>
> </dependency>
> You can also solve the issue by adding direct dependency on asm-2.2.3.
> Hope this helps.
> Martin 
> 

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

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


Mime
View raw message