Invocation of Init method failed; Nested exception is java.lang.NoSuchMethodError: Problem resolution

Source: Internet
Author: User
MyEclipse Java.lang.NoSuchMethodError:org.objectweb.asm.ClassVisitor.visit Solution when developing SSH integration

This article solves the problem with the core tip:

2007-08-08 Discovery with MyEclipse 5.5 to do Struts 1.2 + Spring 2.0 + Hibernate 3.1 When consolidating the error reported in the startup process:


2007-08-08 15:36:17,406 ERROR [Org.hibernate.proxy.BasicLazyInitializer]-cglib enhancement Failed:dao. User
Java.lang.NoSuchMethodError:org.objectweb.asm.ClassVisitor.visit (iiljava/lang/string; ljava/lang/string; [Ljava/lang/string; ljava/lang/string;) V
At Net.sf.cglib.core.ClassEmitter.begin_class (classemitter.java:77)

Some jar files shared by Spring and Hibernate have version conflicts, delete Web-inf/lib/asm-2.2.3.jar, and then restart Tomcat.

Asm-2.2.3.jar
Asm.jar
Asm-attrs.jar
Asm-commons-2.2.3.jar
Asm-util-2.2.3.jar


Original reference: http://heweiya.javaeye.com/blog/101575


The following is a complete error message:

2007-10-7 10:44:42 Org.apache.catalina.core.StandardContext Listenerstart
Serious: Exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoad Erlistener
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' entitymanagerfactory ' defined In ServletContext resource [/web-inf/classes/applicationcontext.xml]: Invocation to Init method failed; Nested exception is Java.lang.ExceptionInInitializerError
caused By:java.lang.ExceptionInInitializerError
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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.