Error : java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)V

前端 未结 9 2054
迷失自我
迷失自我 2020-11-27 06:24

I am developing a small Spring application. I have to store the details of the student information in the database. I have developed one SimpleFormController. I have used Ne

相关标签:
9条回答
  • 2020-11-27 07:11

    You have an incompatibility between the version of ASM required by Hibernate (asm-1.5.3.jar) and the one required by Spring. But, actually, I wonder why you have asm-2.2.3.jar on your classpath (ASM is bundled in spring.jar and spring-core.jar to avoid such problems AFAIK). See HHH-2222.

    0 讨论(0)
  • 2020-11-27 07:12

    Update your pom.xml

    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>3.1</version>
    </dependency>
    
    0 讨论(0)
  • 2020-11-27 07:13

    I had the same error when initializing Spring on startup, using some different library versions, but everything worked when I got my versions in this order in the classpath (the other libraries in the cp were not important):

    1. asm-3.1.jar
    2. cglib-nodep-2.1_3.jar
    3. asm-attrs-1.5.3.jar
    0 讨论(0)
提交回复
热议问题