CoreMedia Content Cloud v12 Upgrade Guide / Version 2404
Table Of Contents
Spring Boot 3.2 supports Jetty 12 but the most recent SolrJ version (9.4.1) still depends on Jetty 10 as HTTP client
implementation. Hence, CMCC 12 apps connecting to Solr depend on Jetty 10 HTTP client. This incompatibility may lead
to Exceptions caused by java.lang.NoSuchMethodError: 'org.eclipse.jetty.client.Request org.eclipse.jetty.client.HttpClient.newRequest(java.net.URI)'
when an application depends on SolrJ and uses a Spring RestTemplate without explicitly configuring a HTTP client
request factory. Solutions are to either adding a runtime dependency on org.apache.httpcomponents.client5:httpclient5
(which takes precedence over the Jetty HTTP client) or to explicitly configure the HTTP client request factory.