-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
AOT processing for bean validation causes StackOverflowError
#33936
Comments
Can you provide a minimal sample application that reproduces the problem please? |
I'm encountering the same issue, which seems to be caused by 33842 |
@waileong can you provide a minimal sample application? This would help us speed us the resolution process. |
Having the same error. The usecase to reproduce is not ideal, but cannot find a better one for now. I have an empty spring Application
But these dependencies in my pom.xml
I get the StackOverflowError during AOT. |
I can confirm that removing "spring-boot-starter-validation" and "spring-cloud-stream-binder-kafka" "fixed" the issue for me. |
For me the issue was the combination of "spring-boot-starter-validation" and "org.springdoc:springdoc-openapi-starter-webmvc-api:2.6.0". |
+1 on the above aot + spring-starter-validation |
@bclozel This instance can show my problem |
Minimal sample application https://github.com/waileong/spring-aot-infinite-recursive Cause of the StackOverflowErrorThe issue is caused by the commit 357dbc0, which introduced a recursive processAheadOfTime method without a condition to break the recursion. This leads to an infinite recursive loop and eventually a StackOverflowError. Suggested FixTo resolve the issue, add a condition to break the infinite recursive loop by keeping track of the classes that have already been validated.
|
StackOverflowError
Problem generate in spring boot Version: 3.4.0. It's normal in spring boot 3.3.6.
error log:
The text was updated successfully, but these errors were encountered: