-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Cannot downgrade to Spring Framework for CGLIB NullPointerException issue #44395
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
Comments
Can you provide a stacktrace for that? |
I decided to give downgrading Spring Framework (as the issue opener discussed) a try in a project with similar issues, and the stack trace regarding a missing method includes:
The use of the |
In the meantime, I don't see anything actionable here, as we don't support Framework downgrades from a Boot perspective (it might work, but we don't guarantee this). In the meantime, you can downgrade to the latest Spring Boot maintenance version that works for you. |
You can also consider putting |
@bclozel Bumping to 6.2.4-SNAPSHOT resolves the issue within our test suite without further changes, which is a great sign. @snicoll I'll see if I can convert one of our failing tests to something shareable as a reproduction. I've narrowed it down to our two configuration classes causing it. The suggestion of |
@k-seth Thanks for checking the SNAPSHOTs! If the fix is good for your case, no need for an additional sample on our side. We've had reports of other cases where this fix would not work entirely, that's why we're asking. |
Changing all occurrences of We have downstream users of our code that will also have |
@breun If you want to be sure that the next Framework version will fix the issue, testing the SNAPSHOTs is the best way to go. |
@bclozel I just verified that Spring Framework 6.2.4-SNAPSHOT indeed also fixes the issue without changing |
While upgrading to Spring Boot 3.4.3, I ran into this Spring Framework 6.2.3 issue while running tests: NullPointerException thrown when ConfigurationClassEnhancer creates CGLIB proxy.
As a temporary workaround, I tried overriding
spring-framework.version
to 6.2.2, but that results in 'method not found' errors, so it seems that Spring Boot 3.4.3 is not compatible with the previous Spring Framework patch release.The same issue also seems to be present in Spring Framework 6.1.17, affecting Spring Boot 3.3.9.
I don't know if this affects a significant number of users, but it seems that this Spring Framework bug is currently a blocker for upgrading to the latest versions of Spring Boot.
The text was updated successfully, but these errors were encountered: