Hi,
Iam facing following error when using hibernate 3.0
Code:
Exception in thread "main" java.lang.IllegalAccessError
at net.sf.cglib.core.ClassEmitter.setTarget(ClassEmitter.java:85)
at net.sf.cglib.core.ClassEmitter.<init>(ClassEmitter.java:77)
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:197)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:63)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:192)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:177)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:149)
at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:102)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:107)
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:269)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:425)
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:1291)
at com.one97.dbutils.SessionFactoryUtil.<clinit>(SessionFactoryUtil.java:26)
at com.one97.core.ChurnData.<init>(ChurnData.java:23)
at com.one97.core.MainClass.main(MainClass.java:9)
Jars Using in my project: log4j-1.2.8.jar"
antlr-2.7.6.jar"
c3p0-0.8.5.2.jar"
commons-collections-3.1.jar"
commons-logging-1.0.4.jar"
dom4j-1.6.1.jar"
javassist-3.9.0.GA.jar"
jta-1.1.jar"
mysql-connector-java-5.0.8-bin.jar"
slf4j-api-1.5.8.jar"
hibernate3.jar"
cglib-asm-1.0.jar"
cglib-2.0.1.jar
Quote:
Please help me to resolve this issue!!!