ALPN unsupported with netty-tcnative-boringssl-static:1.1.33.Fork15:linux-x86_64 and pushy:0.7.2

1,261 views
Skip to first unread message

Svetlana Kopylova

unread,
May 18, 2016, 10:49:16 AM5/18/16
to pushy
Hello, 

i might be missing smth obvious, double-checked manuals but still have error "ALPN unsupported"? could you please tell what am I missing?

In my web app I use pushy and has following dependencies:

compile "com.relayrides:pushy:0.7.2"
compile "io.netty:netty-tcnative-boringssl-static:1.1.33.Fork15:linux-x86_64"
runtime "org.eclipse.jetty.alpn:alpn-api:1.1.2.v20150522"

my machine is:
Ubuntu 14.04
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)


When I deploy my .war to standalone Tomcat 8.0.35 I get

INFO  com.relayrides.pushy.apns.ApnsClient - OpenSSL (via netty-tcnative) not available; will us
e JDK SSL provider.
.....
Caused by: java.lang.ExceptionInInitializerError: null
        at io.netty.handler.ssl.JdkSslContext.toNegotiator(JdkSslContext.java:285)
        at io.netty.handler.ssl.JdkSslClientContext.<init>(JdkSslClientContext.java:261)
        at io.netty.handler.ssl.SslContext.newClientContextInternal(SslContext.java:742)
        at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:395)
...
Caused by: java.lang.RuntimeException: ALPN unsupported. Is your classpatch configured correctly?


What could be missed?

I have OpenSSL 1.0.1f, but it should not be the reason, if I use netty-tcnative-boringssl-static, right?

Jon Chambers

unread,
May 19, 2016, 11:39:19 AM5/19/16
to pushy
I'm not sure, but this sounds similar to other issues on this mailing list. I agree that using a platform-specific version of netty-tcnative-boringssl-static should mean that the version of OpenSSL you have installed doesn't matter. As an aside, netty-tcnative-boringssl-static:1.1.33.Fork16 includes an uber-jar, so it doesn't even have to be platform-specific any more.

What happens if you run something like the debugging app I included in https://github.com/netty/netty/issues/5052?

-Jon

--
Pushy is an open-source Java library for sending APNs (iOS and OS X) push notifications. Pushy is brought to you by the engineers at RelayRides.
---
You received this message because you are subscribed to the Google Groups "pushy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Svetlana Kopylova

unread,
May 24, 2016, 8:40:33 AM5/24/16
to pushy
Hi, Jon.
Thank you for answer.
I've run your debugging app, output is

OpenSSL available? true
ALPN available?    true

I've searched netty's issues (because it certainly not related to pushy, pushy is fine :))

Looks like the problem is because of using netty under Tomcat, here is the issue https://github.com/netty/netty-tcnative/issues/136, here is some clarification https://github.com/netty/netty-tcnative/issues/136#issuecomment-216901549


четверг, 19 мая 2016 г., 21:39:19 UTC+6 пользователь Jon Chambers написал:

j...@turo.com

unread,
May 24, 2016, 10:03:03 AM5/24/16
to pushy
Interesting. Sounds like this may have been a problem for some of our other users, too. Thanks very much for looking into it, and thanks for the update! I'll be watching that issue closely.

-Jon

Joosep Simm

unread,
Jun 12, 2016, 9:49:35 AM6/12/16
to pushy
Just wanted to add that I stumbled on the same issue. I was using Spring Boot, which defaults to Tomcat. After switching to Jetty everything started working nicely.

Seems the issue is not with Pushy, but rather Netty tcnative should make a fix for it.

Joosep

Mark Kempster

unread,
Jan 5, 2017, 3:34:25 PM1/5/17
to pushy
Bumping into this issue with fuse. Netty issue 136 appears to have been fixed last month (Dec 2016). Related Issue 214 was also closed and mentions "This change will take effect in netty-tcnative-2.0.0"

Jon Chambers

unread,
Jan 5, 2017, 3:59:53 PM1/5/17
to Mark Kempster, pushy
I think the issue to be watching right now is https://github.com/netty/netty/pull/5766, which will go out in Netty 4.1.8.

-Jon

--
Pushy is an open-source Java library for sending APNs (iOS and OS X) push notifications. Pushy is brought to you by the engineers at RelayRides.
---
You received this message because you are subscribed to the Google Groups "pushy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+unsubscribe@googlegroups.com.

j...@turo.com

unread,
Feb 2, 2017, 11:37:18 AM2/2/17
to pushy, mark.k...@gmail.com
The Netty folks just merged https://github.com/netty/netty/pull/5766, and we'll look forward to incorporating it when Netty 4.1.9 is available.

-Jon


On Thursday, January 5, 2017 at 3:59:53 PM UTC-5, Jon Chambers wrote:
I think the issue to be watching right now is https://github.com/netty/netty/pull/5766, which will go out in Netty 4.1.8.

-Jon
Reply all
Reply to author
Forward
0 new messages