-
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
ClassCastException in AbstractBeanDefinition.getBeanClassName()
when getting bean multithreaded
#30773
Comments
|
Reproduced with my local environment. |
AbstractBeanDefinition.getBeanClassName()
when getting bean multithreaded
Thanks for trying it, @quaff. Looking at the code in @quaff, @mathekcbo, what OS, JVM, and so on did you use and how many iterations were required before the failure occurred? |
This is a side effect of f64cc08 where we tried to apply |
OS: Windows and Linux |
This should be restored for the upcoming 6.0.11 snapshot now, in sync with the original behavior in the 5.3.x line. |
Thank you for this quick response! |
When calling prototype Beans the first time in a multithreaded manner, the following exception can happen:
If this happens, the context/runtime will never raise this exception again. So it seems to be an issue only on startup.
This seems to happen since Spring Boot 3. There is nothing to find on google. We assume this error to be unknown so far.
To simplify things and for reproduction, we created a repository that can demonstrate the behaviour:
Git Demo Repo for this issue
Please elaborate.
Thanks in advance
The text was updated successfully, but these errors were encountered: