Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-2474

Not logged exception raised during AOP initialization

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0 RC3
    • Fix Version/s: 2.0 RC4
    • Component/s: Core:AOP
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      Exception below is raised but not logged under following conditions:

      • context contain aop-related tags (e.g. <aop:aspectj-autoproxy/> or <aop:spring-configured/>)
      • JVM option -javaagent:aspectjweaver.jar is ommited

      Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/reflect/AjTypeSystem
      at org.springframework.aop.aspectj.annotation.AbstractAspectJAdvisorFactory.isAspect(AbstractAspectJAdvisorFactory.java:113)
      at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.isInfrastructureClass(AnnotationAwareAspectJAutoProxyCreator.java:91)
      at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.isInfrastructureClass(AbstractAutoProxyCreator.java:263)
      at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:206)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:516)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:351)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:261)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:641)
      at de.ntec.feasibility.configurable.Main.main(Main.java:11)

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              al0 Oleksandr Alesinskyy
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                12 years, 10 weeks ago