java.lang.NoSuchMethodError: org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$if$6f1(Lorg/aspectj/lang/JoinPoint;)Z

Spring JIRA | Rob Winch | 4 years ago
  1. 0

    Due to a [bug found in AspectJ|https://bugs.eclipse.org/bugs/show_bug.cgi?id=398246] (details of why whitespace caused the issue found in thanks to the help of Andy Clement) and the removal of whitespaces within spring-aspects code that has been compiled using previous versions of spring-aspects and try to use spring-aspects-3.2.1.BUILD-SNAPSHOT will get a NoSuchMethodException. An example of one such exception can be found below: {code} java.lang.NoSuchMethodError: org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$if$6f1(Lorg/aspectj/lang/JoinPoint;)Z at org.springframework.data.jpa.domain.support.AuditingEntityListener.<init>(AuditingEntityListener.java:53) ~[spring-data-jpa-1.1.0.RELEASE.jar:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_06] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_06] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_06] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) ~[na:1.7.0_06] at java.lang.Class.newInstance0(Class.java:372) ~[na:1.7.0_06] at java.lang.Class.newInstance(Class.java:325) ~[na:1.7.0_06] at org.hibernate.ejb.event.CallbackResolver.resolveCallback(CallbackResolver.java:162) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.event.EntityCallbackHandler.addCallback(EntityCallbackHandler.java:123) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.event.EntityCallbackHandler.add(EntityCallbackHandler.java:57) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.event.JpaIntegrator.integrate(JpaIntegrator.java:151) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:301) ~[hibernate-core-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1746) ~[hibernate-core-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288) ~[spring-orm-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310) ~[spring-orm-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1545) ~[spring-beans-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1483) ~[spring-beans-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT] ... 58 common frames omitted {code} Until the bug is resolved, we should leave the whitespaces the same in the *.aj files of spring-aspects.

    Spring JIRA | 4 years ago | Rob Winch
    java.lang.NoSuchMethodError: org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$if$6f1(Lorg/aspectj/lang/JoinPoint;)Z
  2. 0

    Due to a [bug found in AspectJ|https://bugs.eclipse.org/bugs/show_bug.cgi?id=398246] (details of why whitespace caused the issue found in thanks to the help of Andy Clement) and the removal of whitespaces within spring-aspects code that has been compiled using previous versions of spring-aspects and try to use spring-aspects-3.2.1.BUILD-SNAPSHOT will get a NoSuchMethodException. An example of one such exception can be found below: {code} java.lang.NoSuchMethodError: org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$if$6f1(Lorg/aspectj/lang/JoinPoint;)Z at org.springframework.data.jpa.domain.support.AuditingEntityListener.<init>(AuditingEntityListener.java:53) ~[spring-data-jpa-1.1.0.RELEASE.jar:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_06] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_06] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_06] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) ~[na:1.7.0_06] at java.lang.Class.newInstance0(Class.java:372) ~[na:1.7.0_06] at java.lang.Class.newInstance(Class.java:325) ~[na:1.7.0_06] at org.hibernate.ejb.event.CallbackResolver.resolveCallback(CallbackResolver.java:162) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.event.EntityCallbackHandler.addCallback(EntityCallbackHandler.java:123) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.event.EntityCallbackHandler.add(EntityCallbackHandler.java:57) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.event.JpaIntegrator.integrate(JpaIntegrator.java:151) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:301) ~[hibernate-core-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1746) ~[hibernate-core-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74) ~[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final] at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288) ~[spring-orm-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT] at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310) ~[spring-orm-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1545) ~[spring-beans-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1483) ~[spring-beans-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT] ... 58 common frames omitted {code} Until the bug is resolved, we should leave the whitespaces the same in the *.aj files of spring-aspects.

    Spring JIRA | 4 years ago | Rob Winch
    java.lang.NoSuchMethodError: org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$if$6f1(Lorg/aspectj/lang/JoinPoint;)Z
  3. 0

    bPermissions > 1.9.2 causes many BLOCK_BREAK errors

    GitHub | 1 year ago | LlmDl
    java.lang.NoSuchMethodError: de.bananaco.permissions.interfaces.PermissionSet.has(Lorg/bukkit/entity/Player;Ljava/lang/String;)Z
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to start Oryx - NoSuchMethodError

    Stack Overflow | 8 months ago | mds91
    java.lang.NoSuchMethodError: kafka.admin.AdminUtils.topicExists(Lorg/I0Itec/zkclient/ZkClient;Ljava/lang/String;)Z
  6. 0

    How to resolve dependency version conflicts (NoSuchMethodError's)

    Stack Overflow | 5 years ago | Peter Perháč
    java.lang.NoSuchMethodError: org.jsoup.Jsoup.isValid(Ljava/lang/String;Lorg/jsoup/safety/Whitelist;)Z

    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. java.lang.NoSuchMethodError

      org.springframework.beans.factory.aspectj.AbstractDependencyInjectionAspect.ajc$if$6f1(Lorg/aspectj/lang/JoinPoint;)Z

      at org.springframework.data.jpa.domain.support.AuditingEntityListener.<init>()
    2. Spring Data JPA
      AuditingEntityListener.<init>
      1. org.springframework.data.jpa.domain.support.AuditingEntityListener.<init>(AuditingEntityListener.java:53)[spring-data-jpa-1.1.0.RELEASE.jar:na]
      1 frame
    3. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.7.0_06]
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[na:1.7.0_06]
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[na:1.7.0_06]
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)[na:1.7.0_06]
      5. java.lang.Class.newInstance0(Class.java:372)[na:1.7.0_06]
      6. java.lang.Class.newInstance(Class.java:325)[na:1.7.0_06]
      6 frames
    4. Hibernate EJB
      JpaIntegrator.integrate
      1. org.hibernate.ejb.event.CallbackResolver.resolveCallback(CallbackResolver.java:162)[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final]
      2. org.hibernate.ejb.event.EntityCallbackHandler.addCallback(EntityCallbackHandler.java:123)[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final]
      3. org.hibernate.ejb.event.EntityCallbackHandler.add(EntityCallbackHandler.java:57)[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final]
      4. org.hibernate.ejb.event.JpaIntegrator.integrate(JpaIntegrator.java:151)[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final]
      4 frames
    5. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:301)[hibernate-core-4.1.6.Final.jar:4.1.6.Final]
      2. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1746)[hibernate-core-4.1.6.Final.jar:4.1.6.Final]
      2 frames
    6. Hibernate EJB
      HibernatePersistence.createContainerEntityManagerFactory
      1. org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final]
      2. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final]
      3. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final]
      4. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74)[hibernate-entitymanager-4.1.6.Final.jar:4.1.6.Final]
      4 frames
    7. Spring ORM
      AbstractEntityManagerFactoryBean.afterPropertiesSet
      1. org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:288)[spring-orm-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT]
      2. org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)[spring-orm-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT]
      2 frames
    8. Spring Beans
      AbstractAutowireCapableBeanFactory.initializeBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1545)[spring-beans-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT]
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1483)[spring-beans-3.2.1.BUILD-SNAPSHOT.jar:3.2.1.BUILD-SNAPSHOT]
      2 frames