Croway opened a new pull request, #2088:
URL: https://github.com/apache/camel-spring-boot/pull/2088

   Fixes the 68 JSONPath failures in the [Camel-Spring-Boot Daily main build 
#456](https://ci-builds.apache.org/job/Camel/job/Camel-Spring-Boot%20Daily/job/main/456/testReport/):
 67 in `camel-jsonpath-starter` plus 
`SpringBootPlatformHttpCamelIntegrationsTest`. They all fail with 
`NoClassDefFoundError: com/jayway/jsonpath/spi/json/Jackson3JsonProvider`.
   
   ### Cause
   
   - json-path has been 3.0.0 in Camel since apache/camel#21645 (March 2026). 
This was harmless until apache/camel#29461 (CAMEL-22857, merged 2026-11-10) 
made `JsonPathEngine` use `Jackson3JsonProvider` and `Jackson3MappingProvider`. 
Those classes only exist in json-path 3.
   - Spring Boot 4.1.x manages json-path 2.10.0, which it only uses in 
`spring-boot-starter-test`. `camel-starter-parent` imports 
`spring-boot-dependencies` before `camel-parent`, so 2.10.0 won in the starters.
   - Spring Boot moved to json-path 3.0.0 in 4.2.0-M1 
(spring-projects/spring-boot#50786).
   
   ### Changes
   
   - `camel-spring-boot-dependencies` manages `com.jayway.jsonpath:json-path` 
with the Camel version (`${json-path-version}`, 3.0.0), configured in the 
generator as is already done for Avro. The generated BOM already overrides 
Spring Boot versions in the same way, for example Jackson 3 at 3.2.4 instead of 
3.1.7. The generator POM comment says to remove the entry when moving to Spring 
Boot 4.2 (CAMEL-26590).
   - `JsonPathMapTransformTest` built its input with json-path's Jackson 2 
`JacksonJsonProvider`. Since CAMEL-22857, `camel-jsonpath` no longer brings 
Jackson 2, so the test now uses the Jackson 3 providers instead of adding a 
Jackson 2 test dependency.
   - `jackson.adoc` gets a "JSONPath and Spring Boot 4.1" section. Applications 
that inherit from `spring-boot-starter-parent` or import 
`spring-boot-dependencies` still get Spring Boot's 2.10.0, because their Spring 
Boot dependency management wins over the Camel BOMs. The section shows the 
`json-path.version` property and the `dependencyManagement` override.
   
   The BOM entry was added by hand. Regenerating against the latest published 
Camel SNAPSHOT would also drop `camel-azure-iothub`, which is newer than that 
SNAPSHOT.
   
   ### Tests
   
   Run locally against the current Camel 4.24.0-SNAPSHOT with the new BOM 
installed:
   - `camel-jsonpath-starter`: 68/68
   - `camel-platform-http-starter`: 
`SpringBootPlatformHttpCamelIntegrationsTest` passes
   - `camel-openapi-java-starter` (now on json-path 3.0.0): 16/16
   - `camel-geocoder-starter` (now on json-path 3.0.0) compiles; it has no unit 
tests
   
   No module in this repository uses Spring's json-path test helpers 
(`jsonPath()` matchers, `JsonPathExpectationsHelper`).
   
   _Claude Code (Opus 5.5) on behalf of Federico Mariani_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to