OrgChart Add-on not compatible with Spring Boot 4.0.4 anymore

Hi there,

unfortunately, the OrgChart add-on is no longer compatible with Spring Boot 4.0.4. Due to updates to Jackson, certain annotations are no longer found:

Unexpected error: com/fasterxml/jackson/annotation/JsonSerializeAs

java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonSerializeAs
at com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.(JacksonAnnotationIntrospector.java:38) ~[jackson-databind-2.21.1.jar:2.21.1]
at com.fasterxml.jackson.databind.ObjectMapper.(ObjectMapper.java:403) ~[jackson-databind-2.21.1.jar:2.21.1]

Broken:
com.fasterxml.jackson.core:jackson-databind:2.21.1
com.fasterxml.jackson.core:jackson-annotations:2.20
com.fasterxml.jackson.core:jackson-core:2.21.1

The last working version is Spring Boot 4.0.3 with Jackson:
com.fasterxml.jackson.core:jackson-databind:2.20.2
com.fasterxml.jackson.core:jackson-annotations:2.20
com.fasterxml.jackson.core:jackson-core:2.20.2

Hello, which version of the add-on are you using? Latest version is 5.3.0. I did a quick test on a sample project with Vaadin 25.1.0 and spring boot 4.0.4 and it works okay. Also we have our online demo configured in the same way and the component works as expected Organizational Chart.

Regards.

I am using 5.3.0. On this line in my code

final OrgChart newOrgChart = new OrgChart(root);

I get this error:

2026-03-26T10:45:07.958+01:00 ERROR 1 --- [app] [nio-8000-exec-9] c.v.flow.server.DefaultErrorHandler      : Unexpected error: Could not initialize class com.fasterxml.jackson.databind.ObjectMapper 
2026-03-26 10:45:07.960 java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.ObjectMapper 
2026-03-26 10:45:07.960 at com.flowingcode.vaadin.addons.orgchart.OrgChart.convertToJsonObj(OrgChart.java:110) ~[orgchart-addon-5.3.0.jar!/:5.3.0] 
2026-03-26 10:45:07.960 at com.flowingcode.vaadin.addons.orgchart.OrgChart.setValue(OrgChart.java:100) ~[orgchart-addon-5.3.0.jar!/:5.3.0] 
2026-03-26 10:45:07.960 at com.flowingcode.vaadin.addons.orgchart.OrgChart.<init>(OrgChart.java:80) ~[orgchart-addon-5.3.0.jar!/:5.3.0] 

I am using OrgChart 5.3.0, Vaadin 25.0.7 and Spring Boot 4.04. When I go back to Spring Boot 4.0.3 the error disappears.

Thanks for the details. I was able to reproduce the issue on my side. It seems that it’s something wrong with the combination of the add-on and Vaadin 25.0.7 & Spring boot 4.0.4 as the same version works fine with Vaadin 25.1.0.

To help us track and address this properly, could you please open an issue in our GitHub repository? Having the issue reported in GitHub help us manage bugs and fixes more efficiently, it ensures nothing gets lost and you’ll be notified as soon as there’s progress.

You can include the same information you shared here (error, versions, and sample code), and we’ll take it from there.

Regards.

Done:

1 Like