org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:/eval/workspace/nh.application/src/nh/application/application-context.xml]; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V

Spring JIRA | Christian Dupuis | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hi, I've just installed the Spring IDE 2.0.5 on a "fresh" Ganymede M7 "JEE"-release using the Spring IDE updatesite. When I use <context:component-scan ... />-element in my application context file, an error occures: {code} !ENTRY org.springframework.ide.eclipse.beans.core 4 0 2008-05-26 21:41:37.953 !MESSAGE Internal Error !STACK 0 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:/eval/workspace/nh.application/src/nh/application/application-context.xml]; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420) [...] Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V at org.springframework.ide.eclipse.core.model.java.JavaSourceExtractor.extractSource(JavaSourceExtractor.java:53) at org.springframework.ide.eclipse.beans.core.internal.model.DelegatingSourceExtractor.extractSource(DelegatingSourceExtractor.java:43) at org.springframework.beans.factory.parsing.ReaderContext.extractSource(ReaderContext.java:132) at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.registerComponents(ComponentScanBeanDefinitionParser.java:143) at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:85) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1253) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1243) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) ... 33 more {code} It seems, Spring IDE is not compatible with the newest version of the org.objectweb.asm plug-in, that is shipped with Eclipse 3.4 M7. I've modified the MANIFEST of the org.springframework.ide.eclipse.beans.core and org.springframework.ide.eclipse.core bundles to make them using the older version and the error disappears: Require-Bundle: ...org.objectweb.asm;bundle-version="[2.2.3,3.0.0)" ... Is this a known problem? Regards, Nils

    Spring JIRA | 9 years ago | Christian Dupuis
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:/eval/workspace/nh.application/src/nh/application/application-context.xml]; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V
  2. 0

    Hi, I've just installed the Spring IDE 2.0.5 on a "fresh" Ganymede M7 "JEE"-release using the Spring IDE updatesite. When I use <context:component-scan ... />-element in my application context file, an error occures: {code} !ENTRY org.springframework.ide.eclipse.beans.core 4 0 2008-05-26 21:41:37.953 !MESSAGE Internal Error !STACK 0 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:/eval/workspace/nh.application/src/nh/application/application-context.xml]; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420) [...] Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V at org.springframework.ide.eclipse.core.model.java.JavaSourceExtractor.extractSource(JavaSourceExtractor.java:53) at org.springframework.ide.eclipse.beans.core.internal.model.DelegatingSourceExtractor.extractSource(DelegatingSourceExtractor.java:43) at org.springframework.beans.factory.parsing.ReaderContext.extractSource(ReaderContext.java:132) at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.registerComponents(ComponentScanBeanDefinitionParser.java:143) at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:85) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1253) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1243) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) ... 33 more {code} It seems, Spring IDE is not compatible with the newest version of the org.objectweb.asm plug-in, that is shipped with Eclipse 3.4 M7. I've modified the MANIFEST of the org.springframework.ide.eclipse.beans.core and org.springframework.ide.eclipse.core bundles to make them using the older version and the error disappears: Require-Bundle: ...org.objectweb.asm;bundle-version="[2.2.3,3.0.0)" ... Is this a known problem? Regards, Nils

    Spring JIRA | 9 years ago | Christian Dupuis
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:/eval/workspace/nh.application/src/nh/application/application-context.xml]; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V
  3. 0

    Integrate Struts and Hibernate

    Stack Overflow | 3 years ago | user3817863
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 - Libreplan

    libreplan.org | 2 years ago
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [jar:file:/C:/Tomcat%208.0/webapps/libreplan/WEB-INF/lib/libreplan-business-1.4.0.jar!/libreplan-business-spring-config.xml]; nested exception is java.lang.IllegalStateException: AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
  6. 0

    java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getLocalName(Lorg/w3c/dom/Node;)Ljava/lang/String;

    Stack Overflow | 5 years ago | Jagadeesh
    org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring/spring-security.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getLocalName(Lorg/w3c/dom/Node;)Ljava/lang/String;

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.factory.BeanDefinitionStoreException

      Unexpected exception parsing XML document from file [D:/eval/workspace/nh.application/src/nh/application/application-context.xml]; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;Z)V

      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions()
    2. Spring Beans
      XmlBeanDefinitionReader.doLoadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
      1 frame