Skip to content

Http message conversion not finding Jackson JDK8 module in context [SPR-13049] #17641

@spring-projects-issues

Description

@spring-projects-issues

John Franco opened SPR-13049 and commented

Despite having a Jackson JDK 8 module bean available in the context, deserializing a request having an Optional<String> field fails with an error indicating that the object mapper in use does not have the module installed. The attached git bundle has a maven project and a unit test to reproduce the problem. The unit test demonstrates that the object mapper available from the context does have the module installed (by deserializing a JSON string into an object having an Optional<String> field), which seems to indicate that the http message handling is using a different object mapper that doesn't have the module installed.


Affects: 4.1.6

Attachments:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions