Coder Social home page Coder Social logo

Comments (6)

scottfrederick avatar scottfrederick commented on June 23, 2024

This appears to be a duplicate of spring-projects/spring-framework#32882. Please try the workarounds suggested in that issue, or build against the latest Spring Framework 6.1 snapshots to verify the fix.

If the workarounds or the Framework fix don't solve the problem, please provide a complete minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it and attaching it to this issue.

from spring-boot.

hoanvh avatar hoanvh commented on June 23, 2024

I got the same issue when bumping SB from 3.2.5 to 3.3.0.
In my case:

  • EnableMethodSecurity ~> ASPECTJ mode
  • EnableTransactionManagement ~> PROXY mode (default).
  • EnableCaching ~> PROXY mode (default).

After switching between Proxy & AspectJ, I found the same phenomenon: When there is a mix of Proxy & AspectJ, there will be an exception like (thrown in AbstractAspectJAdvice):

IllegalStateException: Expecting to find X arguments to bind by name in advice, but actually found Y arguments.

Above workaround does not work for me, even after I use AspectJ mode for each of EnableMethodSecurity, EnableTransactionManagement and EnableCaching. Another exception will be thrown with built-in components in SB:

BeanCreationException: Error creating bean with name 'healthEndpointGroupsBeanPostProcessor' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: BeanPostProcessor before instantiation of bean failed
...
IllegalStateException: Expecting to find 3 arguments to bind by name in advice, but actually found 2 arguments.

from spring-boot.

bclozel avatar bclozel commented on June 23, 2024

@hoanvh thanks for letting us know. Have you tried upgrading your application to the latest Spring Framework SNAPSHOTs to verify the fix?

from spring-boot.

hoanvh avatar hoanvh commented on June 23, 2024

@bclozel yes, I've just found that comment, and I confirm that framework 6.1.9-SNAPSHOT works for me.
Thank a lot.

from spring-boot.

bclozel avatar bclozel commented on June 23, 2024

Thanks for letting us know. I'll close this issue for now. @willome if Spring Framework SNAPSHOTs don't fix the problem, please create a new issue here with a sample application that reproduces the problem.

from spring-boot.

willome avatar willome commented on June 23, 2024

I confirm that upgrading spring-framework to 6.1.9-SNAPSHOT was the only way to fix the problem. Let's keep this issue closed for the moment. Thank you.

from spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.