25.1.0 potentially bug with jackson?

Hi everyone,

I encountered a potential issue in Vaadin 25.1.0:
flow-server is pulling in Jackson 3.x (tools.jackson.*), but Flow still calls APIs that only exist in Jackson 2.x.
This results in an immediate runtime crash:

java.lang.NoSuchMethodError:
ObjectMapper.treeToValue(JsonNode, Class)

Is it possible, that the method treeToValue() no longer exists in Jackson 3 which gets fetched by vaadin 25.1.0?

Or is that a build problem? But i already removed nodes_modules and the package.json

If you are using Spring Boot, make sure to update to 4.0.4 or later.

See also Update from vaadin 25.0.5 to vaadin 25.1.0 problem

1 Like

I’m curious if there is a way to keep things stable. Obviously, 25. predicated itself on SpringBoot 4.0 before it had a chance to stabilize.

Without thinking stability we finding ourselves scratching our heads what point release of what library works with what.

Maybe there is a lesson somewhere here?

The Jackson bump to 3.1 in a patch release was dictated by the end of support of Jackson 2.20 and 3.0 that were affected by a vulnerability

* Jackson 2 has been upgraded to 2.21.1 in response to the Jackson team ending support for Jackson 2.20.x. [#49389](https://github.com/spring-projects/spring-boot/issues/49389)
* Jackson has been upgraded to 3.1.0 in response to the Jackson team ending support for Jackson 3.0.x. [#49383](https://github.com/spring-projects/spring-boot/issues/49383)

Some references:

https://nvd.nist.gov/vuln/detail/CVE-2026-29062

Soo vaadin 25.1.1 and Spring Boot Starter Parent 4.0.5 is a working combi? At least it starts and seems to work :)

All Vaadin 25.x / Spring Boot 4.0.4+ combinations should work.

EDIT: for Vaadin 25.0 better use Vaadin 25.0.8 to make sure there are no incompatibilitites