rishabhdaim commented on PR #3302: URL: https://github.com/apache/jackrabbit-oak/pull/3302#issuecomment-6956567564
In an isolated Felix 7.0.5 reproduction using this PR’s embedded Rest5 9.5.6 / HttpClient 5.6.3 / HttpCore 5.4.3, excluding `jdk.net` lets the bundle start but the first Rest5 request fails with `NoClassDefFoundError: jdk/net/Sockets` in [`ReflectionUtils.<clinit>`](https://github.com/apache/httpcomponents-core/blob/rel/v5.4.3/httpcore5/src/main/java/org/apache/hc/core5/util/ReflectionUtils.java#L41-L43), called by [`SingleCoreIOReactor.prepareSocket`](https://github.com/apache/httpcomponents-core/blob/rel/v5.4.3/httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java#L312-L322), and times out; retaining the import returns HTTP 200 on both Java 17 and Java 21 with `felix.bootdelegation.implicit=false` and no explicit boot delegation. Please retain the import and consider an `oak-it-osgi` regression test such as `elasticHttpRequestThroughBundle()`: load `Rest5Client` through the provisioned `oak-search-elastic` bundle’s classloader, send a GET to a loopback HTTP stub, and require HTTP 200 within a bounded timeout under the same strict delegation settings, closing the client and server afterward—checking bundle state alone misses this failure, and no external Elasticsearch server is needed. -- 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]
