[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] NPE in Java15AnnotationFinder.getParameterNamesFromLVT

Bug - i just raised it as
https://bugs.eclipse.org/bugs/show_bug.cgi?id=222987 .  Seems to be
when attempting to determine the parameter names from a method that
has no associated code - for example an abstract method in a class or
an interface method.  I could give you a debug build to try so we
could see if the method is expected or not expected to have a local
variable table?

Andy.

On 17/03/2008, Chris Wall <chris@xxxxxxxxxxxxxx> wrote:
> When my plugin is initiated and during Spring context beans loading,
>  we're getting the following:
>
>  Caused by: java.lang.NullPointerException
>         at org.aspectj.weaver.reflect.Java15AnnotationFinder.getParameterNamesFromLVT(Java15AnnotationFinder.java:196)
>         at org.aspectj.weaver.reflect.Java15AnnotationFinder.getParameterNames(Java15AnnotationFinder.java:187)
>         at org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate.tryToDiscoverParameterNames(Java15ReflectionBasedReferenceTypeDelegate.java:297)
>         at org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate.getDeclaredPointcuts(Java15ReflectionBasedReferenceTypeDelegate.java:270)
>         at org.aspectj.weaver.ReferenceType.getDeclaredPointcuts(ReferenceType.java:535)
>         at org.aspectj.weaver.ResolvedType$7.get(ResolvedType.java:477)
>         at org.aspectj.weaver.Iterators$3$1.hasNext(Iterators.java:118)
>         at org.aspectj.weaver.Iterators$3.hasNext(Iterators.java:128)
>         at org.aspectj.weaver.ResolvedType.findPointcut(ResolvedType.java:488)
>         at org.aspectj.weaver.patterns.ReferencePointcut.resolveBindings(ReferencePointcut.java:152)
>         at org.aspectj.weaver.patterns.Pointcut.resolve(Pointcut.java:196)
>         at org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression(PointcutParser.java:330)
>         at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:308)
>         at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:197)
>         at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:184)
>         at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:165)
>         at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:198)
>         at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:253)
>         at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:287)
>         at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:113)
>         at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:85)
>         at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)
>         at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:345)
>         at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:309)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:360)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1343)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
>
>  I've tried with with Spring 2.5.2 and 2.5.3 with JDK 1.5. We're using
>  "@AspectJ" so <aop:aspectj-autoproxy/> is set, and aspectjweaver.jar
>  and aspectjrt.jar are included. The Spring IDE shows that AOP advise
>  is applied to expected pointcuts. When compiled and run outside of the
>  Spring IDE, the application encounters the NPE.
>
>  Ideas?
>  _______________________________________________
>  aspectj-users mailing list
>  aspectj-users@xxxxxxxxxxx
>  https://dev.eclipse.org/mailman/listinfo/aspectj-users
>