Comments (6)
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.
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.
@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.
@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.
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.
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)
- Port spring-cloud Kafka HealthIndicator to spring-boot HOT 3
- Reference 'xref:#deployment.efficient.cds' in invalid but didn't fail the build
- When virtual threads are enabled, configure Spring Integration's task scheduler to use them HOT 4
- Documentation wrongly states that zipkin-sender-urlconnection is needed
- Use Framework's NoOpResponseErrorHandler
- Document tracing support for RestClient
- Document tracing support for RestClient
- Upgrade to Liquibase 4.28.0
- Upgrade to GitHub Changelog Generator 0.0.11
- Upgrade to GitHub Changelog Generator 0.0.11
- Upgrade to GitHub Changelog Generator 0.0.11
- Add test auto-configuration for MockMvcTester
- build-image failure after docker desktop update HOT 6
- Remove fail fast logic for unsupported versions of Gradle
- The "spring-boot-starter-test" package:3.1.5" carries with it an incomplete implementation of the "json" library, which leads to an error in runtime HOT 2
- Restore versioned micrometer links
- JPMS: missing jakarta dependencies HOT 2
- JPMS: Autoconfigure HibernateJpaConfiguration HOT 1
- Restore versioned micrometer links
- Can't fetch/build javadoc after upgrading to 3.3.x HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.