Announcement Announcement Module
No announcement yet.
Urgent help needed for AOP Annotation finder with Profiling tools Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Urgent help needed for AOP Annotation finder with Profiling tools

    Hi Everyone,

    We are using Spring 2.5.5 and aspect weaver jar version 1.5.4 in our web application, which runs on Websphere 6.1 server in Linux environment.

    We are using a profiling tool in one of our performance test environments.
    Apparently , there is some issue with the way Spring uses aspectJ ,in an environment which is profiled by a tool.
    The tool basically injects some byte codes , at the start up of the JVM, in order to profile the incoming requests in the application.

    The issue is that when the application starts in the tool enabled environment, the Spring fails to initialize certain beans, and throws the following exception :

    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jdbcTemplate' defined in ServletContext resource [/WEB-INF/config/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException
    at AutowireCapableBeanFactory.doCreateBean(AbstractAu
    at AutowireCapableBeanFactory$
    at AutowireCapableBeanFactory.createBean(AbstractAuto
    at BeanFactory$1.getObject( 64)
    at ingletonBeanRegistry.getSingleton(DefaultSingleton
    at BeanFactory.doGetBean( )
    at BeanFactory.getBean(
    at BeanFactory.getBean(
    at nitionValueResolver.resolveReference(BeanDefinitio
    ... 99 more
    Caused by: java.lang.NullPointerException
    at org.aspectj.weaver.reflect.Java15AnnotationFinder. getAnnotations(Java15Annotation
    at org.aspectj.weaver.reflect.ReflectionBasedResolved MemberImpl.unpackAnnotations(ReflectionBasedResolv
    at org.aspectj.weaver.reflect.ReflectionBasedResolved MemberImpl.hasAnnotation(ReflectionBasedResolvedMe
    at org.aspectj.weaver.patterns.ExactAnnotationTypePat tern.matches(
    at org.aspectj.weaver.patterns.AnnotationPointcut.mat chInternal(
    at org.aspectj.weaver.patterns.Pointcut.match(Pointcu

    When we turn off the profiling tool, the application starts and works just fine.

    Any help would be highly appreciated in this matter.