[
https://issues.apache.org/jira/browse/KARAF-6325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16872641#comment-16872641
]
Scott Leschke commented on KARAF-6325:
--------------------------------------
If I recall correctly, I believe was doing an HTTPS request using the Jetty
client. At that time, I wasn't initializing the client with an instance of
SslContextFactory. In 4.2.5, the HTTPS get would just fail with a message
about SSL Handshake failure while in 4.2.6 I got the NPE.
I didn't really think about this all before I submitted the bug. In
retrospect, the NPE is preferable to the 4.2.5 behavior so I'll close this
ticket.
> Jetty client issue?
> -------------------
>
> Key: KARAF-6325
> URL: https://issues.apache.org/jira/browse/KARAF-6325
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.6
> Reporter: Scott Leschke
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: 4.3.0, 4.2.7
>
>
> I get the following occurs in 4.2.6 but not 4.2.5
> {code}
> Caused by: java.lang.NullPointerException: Missing SslContextFactory
> at java.util.Objects.requireNonNull(Objects.java:228) ~[?:?]
> at
> org.eclipse.jetty.io.ssl.SslClientConnectionFactory.<init>(SslClientConnectionFactory.java:55)
> ~[104:org.eclipse.jetty.io:9.4.18.v20190429]
> at
> org.eclipse.jetty.client.HttpClient.newSslClientConnectionFactory(HttpClient.java:1170)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at
> org.eclipse.jetty.client.HttpDestination.newSslClientConnectionFactory(HttpDestination.java:137)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at org.eclipse.jetty.client.HttpDestination.<init>(HttpDestination.java:94)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at
> org.eclipse.jetty.client.PoolingHttpDestination.<init>(PoolingHttpDestination.java:25)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at
> org.eclipse.jetty.client.http.HttpDestinationOverHTTP.<init>(HttpDestinationOverHTTP.java:32)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at
> org.eclipse.jetty.client.http.HttpClientTransportOverHTTP.newHttpDestination(HttpClientTransportOverHTTP.java:51)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at org.eclipse.jetty.client.HttpClient.destinationFor(HttpClient.java:542)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at org.eclipse.jetty.client.HttpClient.send(HttpClient.java:575)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:726)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:718)
> ~[100:org.eclipse.jetty.client:9.4.18.v20190429]
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)