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

Spring Aspects 4.3.x framework Aync error [SPR-15671] #20230

Open
spring-projects-issues opened this issue Jun 16, 2017 · 4 comments
Open

Spring Aspects 4.3.x framework Aync error [SPR-15671] #20230

spring-projects-issues opened this issue Jun 16, 2017 · 4 comments
Labels
in: core status: waiting-for-triage

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jun 16, 2017

Abhik Setia opened SPR-15671 and commented

ava.lang.NoSuchMethodError: org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect.ajc$around$org_springframework_scheduling_aspectj_AbstractAsyncExecutionAspect$1$6c004c3e(Lorg/aspectj/runtime/internal/AroundClosure;Lorg/aspectj/lang/JoinPoint$StaticPart;Lorg/aspectj/lang/JoinPoint;)Ljava/lang/Object;

I was running version 4.0.x and it was running fine ,after updating it to 4.3.x it caused this error.


Affects: 4.3.9

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 16, 2017

Juergen Hoeller commented

Is this happening on invocation of your @Async-annotated methods? Have you recompiled your classes accordingly, picking up spring-aspects-4.3.x against AspectJ 1.8.x? This looks like old pre-compiled code running against a new version of the aspect, so recompilation should fix it.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 16, 2017

Abhik Setia commented

AspectJTrails=1.8;
AspectJTools=1.8;
SpringAspects=4.3.x;

These are the dependencies which are in my versionSet. Code was re-compiled and is compatible with latest version. But yes, this is happening at the invocation of Async annotation and it was running without any problem with SpringAspects=4.0.x,

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 16, 2017

Juergen Hoeller commented

Such a NoSuchMethodError indicates a mismatch between the aspect version used at compilation and the one used at runtime, since it does work for us in our integration tests where the versions are strictly the same. Are there possibly some old Spring jars on either your compilation or your runtime classpath, maybe brought in transitively by some other Maven dependencies?

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 16, 2017

Abhik Setia commented

Yes , you are right. The main problem is because of mismatch between the aspect versions but all latest versions are being used at build,compile and run time. Only these dependencies which i sent to you are there in my versionset . No other old spring jars are present.

But how is that possible that 4.0.x is still working fine.

@spring-projects-issues spring-projects-issues added type: bug status: waiting-for-triage in: core and removed type: bug labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: waiting-for-triage
Projects
None yet
Development

No branches or pull requests

1 participant