jetty-project / jetty-alpn-agent

Enables Jetty ALPN/NPN support via -javaagent JVM option
Apache License 2.0
47 stars 16 forks source link

alpn boot jar is not working with IBM JDK 8.0.5.15 #14

Open shwetadua-uk opened 3 years ago

shwetadua-uk commented 3 years ago

Hi,

We are facing error "unexpected end of stream on Connection{api.push.apple.com:443, proxy=DIRECT hostAddress=api.push.apple.com" while using apns http2 library.

This issue got fixed for open jdk using alpn boot jar but same issue is not getting resolved for IBM JDK version 8.0.5.15 using alpn boot jar.

Is alpn boot not compatible with IBM JDK?

sbordet commented 3 years ago

The ALPN boot jar works with OpenJDK.

If the IBM JDK is incompatible with the sun.security.ssl classes from OpenJDK, then the ALPN boot jar won't work. I don't know the IBM source code to say whether there is an incompatibility or not.

Having said that, in OpenJDK 8u252 the OpenJDK ALPN APIs were backported from Java 9, so there is no need for the ALPN boot jar anymore.

If the IBM JDK you are using supports the backported ALPN APIs, then you don't need the ALPN boot jar. Try to see if updating your IBM JDK to a recent version works.