Announcement Announcement Module
Collapse
No announcement yet.
Spring AOP Initialization fails Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring AOP Initialization fails

    I trying to use spring AOP Logging mechanism for my application.

    I have attached the applicationContex.xml

    The app fails during initialization with following error

    06 28 2007 12:01:31 [org.springframework.web.context.ContextLoader] - Context initialization failed
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.aop.config.internalAutoProxyC reator': Initialization of bean failed; nested exception is java.lang.NullPointerException
    Caused by:
    java.lang.NullPointerException
    at java.lang.String.startsWith(Ljava.lang.String;I)Z( Unknown Source)
    at java.lang.String.startsWith(Ljava.lang.StringZ(Unknown Source)
    at org.springframework.aop.framework.autoproxy.Defaul tAdvisorAutoProxyCreator.findCandidateAdvisors(Def aultAdvisorAutoProxyCreator.java:112)
    at org.springframework.aop.framework.autoproxy.Abstra ctAdvisorAutoProxyCreator.setBeanFactory(AbstractA dvisorAutoProxyCreator.java:57)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1162)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:425)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 51)
    at
    Please help !!!

  • #2
    Your configuration looks ok to me.
    Try performing a simpler test, keeping in your config file only aspects, tx management and test bean.

    Comment

    Working...
    X