org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)

java , hibernate , j2ee , struts , oracle9i India
  • 8 years ago
    Hi friends, I used hibernate3.jar cglib-2.0.1.jar asm-1.5.3.jar i am getting Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:101) at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:205) 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.(Enhancer.java:102) 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.(AbstractEntityTuplizer.java:135) at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55) at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56) at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295) at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434) at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) at com.jobportal.dao.base.AbstractBaseDAO.getSession(AbstractBaseDAO.java:26) at com.jobportal.dao.impl.UserDAOImpl.get(UserDAOImpl.java:46) at com.jobportal.client.UserClient.main(UserClient.java:15) regards, aaryareddy@gmail.com
  • 7 years ago

    Instead of cglib-2.0.1.jar, use cglib-full-2.0.2.jar

    and

    instead of asm-1.5.3.jar use asm-1.3.3.jar

    remove any other cglib jar files or asm jar files if present already.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.” - Jon Ribbens