Thanks for the reply Joakim Erdfelt.

But with link
https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java#L150-L183HttpClientTransportOverHTTP2
<https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java#L150-L183>
,

I am getting below exception. If i pass SslContextFactory instance i won't
this problem, but i am unable to send http2 with https where as just http2
is working fine.
java.lang.NullPointerException
at
org.eclipse.jetty.io.ssl.SslClientConnectionFactory.newConnection(SslClientConnectionFactory.java:70)
at
org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2.lambda$doStart$1(HttpClientTransportOverHTTP2.java:107)
at
org.eclipse.jetty.http2.client.HTTP2Client$ClientSelectorManager.newConnection(HTTP2Client.java:438)
at
org.eclipse.jetty.io.ManagedSelector.createEndPoint(ManagedSelector.java:222)
at org.eclipse.jetty.io.ManagedSelector.access$1500(ManagedSelector.java:60)
at
org.eclipse.jetty.io.ManagedSelector$CreateEndPoint.run(ManagedSelector.java:825)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:754)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:672)
at java.lang.Thread.run(Thread.java:748)

Regards,
Sharanu Patil

On Sun, Mar 3, 2019 at 5:14 PM Joakim Erdfelt <[email protected]> wrote:

> Server:
>
> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/examples/embedded/src/main/java/org/eclipse/jetty/embedded/Http2Server.java
>
> Client - High Level: (does HTTP/1.1 and HTTP/2)
> Basic Usage of HttpClient with default behaviors
>
> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientTest.java
>
> HTTP/2 Usage of HttpClient with HttpClientTransportOverHTTP2
>
> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java#L150-L183HttpClientTransportOverHTTP2
> <https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/tests/test-distribution/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java#L150-L183>
>
> Client - Low Level: (only does raw HTTP/2)
> Basic Usage of HTTP2Client
>
> https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-http2/http2-client/src/test/java/org/eclipse/jetty/http2/client/Client.java
>
>
> Joakim Erdfelt / [email protected]
>
>
> On Sat, Mar 2, 2019 at 1:34 PM sharanu patil <[email protected]>
> wrote:
>
>>
>> _______________________________________________
>> jetty-users mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/jetty-users
>>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to