-
Notifications
You must be signed in to change notification settings - Fork 37.7k
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
Coroutines throws a ClassCastException: kotlin.reflect.jvm.internal.KTypeParameterImpl cannot be cast to class kotlin.reflect.KClass #32615
Comments
I think this is a duplicate of #32510 |
It is not fixed yet in 3.2.5-SNAPSHOT and 3.3.0-SNAPSHOT. |
It should be. I'm moving this to Framework for consideration. |
Thanks but as simple as you may think it is, it does not work without MongoDB running locally. Care to provide what we should run (e.g. docker) to actually be able to use the sample? If we need to execute something against the app, a request sample would also be appreciated. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
It seems like "id" might be a reserved word. example code
|
From Spring Boot 3.2.4, CoroutineCrudRepository raises a CalssCastExceptionc(class kotlin.reflect.jvm.internal.KTypeParameterImpl cannot be cast to class kotlin.reflect.KClass) with Reactive MongoDB.
Until 3.2.3, there is no problem, but after upgrading to 3.2.4, whenever I try to handle a single entity(findById, save, ...) a ClassCastException is thrown.
I created a simple demo project from "https://start.spring.io", wrote very simple codes, and tested. I attached the project. I use MongoDB 7.0.4.
Demo Project
demo.zip
Build:
Stack Trace:
Sources:
The text was updated successfully, but these errors were encountered: