Skip to content
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

Jackson ArrayNode cannot be cast to java.util.Collection in KotlinSerializationJsonHttpMessageConverter #34211

Open
zhangwei911 opened this issue Jan 8, 2025 · 1 comment
Labels
status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on

Comments

@zhangwei911
Copy link

zhangwei911 commented Jan 8, 2025

While using kotlin-serialization-json-jvm:1.7.3 with com.fasterxml.jackson.core:jackson-datebind:2.15.3 in spring-web:5.3.39,
org.springframework.http.converter.json.KotlinSerializationJsonHttpMessageConverter.encode() will cause com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to java.util.Collection in the line String json = this.json.encodeToString(serializer, object);.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 8, 2025
@snicoll
Copy link
Member

snicoll commented Jan 8, 2025

The OSS support for Spring Framework 5.x has ended, and your report is not actionable. If you want support, please take the time to upgrade to a supported version. If you can still reproduce the problem, we'll need a small sample we can run ourselves to reproduce it.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Jan 8, 2025
@sbrannen sbrannen changed the title com.fasterxml.jackson.databind.node.ArrayNode cannot be cast to java.util.collection Jackson ArrayNode cannot be cast to java.util.Collection in KotlinSerializationJsonHttpMessageConverter Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on
Projects
None yet
Development

No branches or pull requests

3 participants