Hello,

Apache HTTPClient5 version 5.5.2 introduced a dependency on the 'jdk.net' 
module, calling jdk.net.Sockets and jdk.net.ExtendedSocketOptions from 
DefaultHttpClientConnectionOperator.
The commit which introduced this: 
https://github.com/apache/httpcomponents-client/commit/9c83a8e43fb82467351a6d16b1ae78e0f6320873#diff-c8d113aa21d5fe2678c4c36f731cda6ed01d172d7e47e4d9fc527a5d4a921077R40-R41

Since our applications are running using just the JRE, we get runtime 
exceptions stating 'java.lang.NoClassDefFoundError: jdk/net/Sockets'
        at deployment.<our 
service>.war//org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.<clinit>(DefaultHttpClientConnectionOperator.java:85)
        at deployment.<our 
service>.war//org.apache.hc.client5.http.impl.io.BasicHttpClientConnectionManager.<init>(BasicHttpClientConnectionManager.java:207)

We're running the Java 21 JRE, using Eclipse Temurin 21.0.9+10, on WildFly 
36.0.1.
When using the HTTPClient 5.5.1 everything still works properly.
Our tests run using the JDK, so they don't detect this.

It would be great if this dependency can be removed.
Thank you in advance.

Kind regards,
Niels van Nieuwenburg


---
Dit bericht is uitsluitend bestemd voor de geadresseerde. Het bericht kan 
vertrouwelijke informatie bevatten. Als u dit bericht per abuis hebt ontvangen, 
wordt u verzocht het te vernietigen en de afzender te informeren.

This email is only meant for the intended recipient. This email may contain 
confidential information. If you have received this email in error please 
delete it and notify the sender immediately.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to