-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Exception in thread "main" java.lang.IllegalAccessError
PostPosted: Thu Sep 02, 2010 4:36 am 
Newbie

Joined: Fri Feb 19, 2010 4:26 am
Posts: 8
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!!!


Top
 Profile  
 
 Post subject: Re: Exception in thread "main" java.lang.IllegalAccessError
PostPosted: Mon Sep 13, 2010 8:05 am 
Newbie

Joined: Fri Feb 19, 2010 4:26 am
Posts: 8
Hi All,

It has been fixed by placing correct version of antlr-2.7.6.jar in classpath.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.