Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Requesting for working sample of jetty server and client with HTTP/2 over HTTPS

Hi
which Jetty version are you using?


On Mon, Mar 4, 2019 at 2:46 PM sharanu patil <sharanupatil567@xxxxxxxxx> wrote:
Thanks for the reply Joakim Erdfelt.


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 <joakim@xxxxxxxxxxx> wrote:
Server:

Client - High Level: (does HTTP/1.1 and HTTP/2)
Basic Usage of HttpClient with default behaviors

HTTP/2 Usage of HttpClient with HttpClientTransportOverHTTP2

Client - Low Level: (only does raw HTTP/2)
Basic Usage of HTTP2Client


Joakim Erdfelt / joakim@xxxxxxxxxxx


On Sat, Mar 2, 2019 at 1:34 PM sharanu patil <sharanupatil567@xxxxxxxxx> wrote:

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
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
jetty-users@xxxxxxxxxxx
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
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


--
Olivier

Back to the top