Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] WebSocket over SSL in Embedded Jetty 9

Hi,

On Thu, Jun 23, 2016 at 3:46 PM, Alexander Farber
<alexander.farber@xxxxxxxxx> wrote:
> Oh, you meant to run my client with
>
> -Dorg.eclipse.jetty.LEVEL=DEBUG -Djavax.net.debug=ssl
>
> I am attaching the log files (now there are exceptions for some reason too).

The server shows a NPE that is the root cause of your issue.

Your server-side code is wrong at line 40, where you specify the
SslConnectionFactory, you tell it that the next protocol is HTTP/1.1,
but then you don't add the HttpConnectionFactory.

Please look at https://github.com/eclipse/jetty.project/blob/jetty-9.3.10.v20160621/examples/embedded/src/main/java/org/eclipse/jetty/embedded/LikeJettyXml.java#L160

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top