Skip to content

ReproFix

  • About
  • Privacy Policy
  • Contact

HttpMessageNotReadableException

Spring Boot 4: fixing Cannot map null into type int (Jackson 3)

October 30, 2026October 30, 2026 by ReproFix
Spring Boot 4: fixing Cannot map null into type int (Jackson 3)

On Spring Boot 4, a RequestBody DTO missing an int field fails with Cannot map null into type int. Why Jackson 3 does it, and five fixes compared.

Categories Java & Spring Boot Tags FAIL_ON_NULL_FOR_PRIMITIVES, HttpMessageNotReadableException, Jackson 3, JsonCreator, RequestBody, Spring Boot 4, Spring Boot migration Leave a comment

Recent Posts

  • Spring Boot 4: fixing Cannot map null into type int (Jackson 3)
  • PostgreSQL 18 Docker: fixing the /var/lib/postgresql/data error

Recent Comments

No comments to show.
© 2026 ReproFix • Built with GeneratePress