Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in RuntimeTestWalker [SPR-7032] #11694

Closed
spring-projects-issues opened this issue Mar 24, 2010 · 3 comments
Closed

NPE in RuntimeTestWalker [SPR-7032] #11694

spring-projects-issues opened this issue Mar 24, 2010 · 3 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Harald Radi opened SPR-7032 and commented

java.lang.NullPointerException
at org.springframework.aop.aspectj.RuntimeTestWalker$InstanceOfResidueTestVisitor.instanceOfMatches(RuntimeTestWalker.java:172) [org.springframework.aop.jar:3.0.1.RELEASE]
at org.springframework.aop.aspectj.RuntimeTestWalker$ThisInstanceOfResidueTestVisitor.thisInstanceOfMatches(RuntimeTestWalker.java:221) [org.springframework.aop.jar:3.0.1.RELEASE]
at org.springframework.aop.aspectj.RuntimeTestWalker.testThisInstanceOfResidue(RuntimeTestWalker.java:90) [org.springframework.aop.jar:3.0.1.RELEASE]
at org.springframework.aop.aspectj.AspectJExpressionPointcut.matches(AspectJExpressionPointcut.java:307) [org.springframework.aop.jar:3.0.1.RELEASE]
at org.springframework.aop.support.MethodMatchers$IntersectionMethodMatcher.matches(MethodMatchers.java:236) [org.springframework.aop.jar:3.0.1.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:160) [org.springframework.aop.jar:3.0.1.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) [org.springframework.aop.jar:3.0.1.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [org.springframework.aop.jar:3.0.1.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [org.springframework.aop.jar:3.0.1.RELEASE]
at $Proxy131.createPlan(Unknown Source) [na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_18]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_18]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_18]
at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_18]
at cc.catalysts.cp.server.impl.ApiManager.invoke(ApiManager.java:150) [cp-kernel.jar:1.3.10.03.24.17.45.10-dev]
at cc.catalysts.cp.remoting.impl.ApiAdapter.invoke(ApiAdapter.java:47) [cp-kernel.jar:1.3.10.03.24.17.45.10-dev]
at cc.catalysts.cp.remoting.red5.Red5ApiAdapter.invoke(Red5ApiAdapter.java:85) [cp-plugin-red5.jar:1.3.10.03.24.17.48.01-dev]
... 46 common frames omitted


Affects: 3.0.1

Attachments:

Referenced from: commits 10c3587

@spring-projects-issues
Copy link
Collaborator Author

Harald Radi commented

This is reproducible, but only happens to a single bean in my context. Other beans with the same aspects applied work fine. This screenshot shows the contents of the stack right before the call that causes the exception, I hope that helps. If not, please let me know how I can assist.

@spring-projects-issues
Copy link
Collaborator Author

Harald Radi commented

Hi Jürgen, that of course could be related to my workaround from https://bugs.eclipse.org/bugs/show_bug.cgi?id=306915

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

I've simply added a (runtimeTest != null) guard to all those checks in RuntimeTestWalker... Not sure it'll solve the underlying problem but it at least avoids unpleasant NPEs.

Juergen

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.2 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants