diff --git a/jetty-alpn/jetty-alpn-java-client/src/main/java/org/eclipse/jetty/alpn/java/client/JDK9ClientALPNProcessor.java b/jetty-alpn/jetty-alpn-java-client/src/main/java/org/eclipse/jetty/alpn/java/client/JDK9ClientALPNProcessor.java index fff7072b959..b06fc76b275 100644 --- a/jetty-alpn/jetty-alpn-java-client/src/main/java/org/eclipse/jetty/alpn/java/client/JDK9ClientALPNProcessor.java +++ b/jetty-alpn/jetty-alpn-java-client/src/main/java/org/eclipse/jetty/alpn/java/client/JDK9ClientALPNProcessor.java @@ -44,7 +44,8 @@ public class JDK9ClientALPNProcessor implements ALPNProcessor.Client try { ALPN.ClientProvider provider = (ALPN.ClientProvider)ALPN.get(sslEngine); - provider.selected(sslEngine.getApplicationProtocol()); + if (provider != null) + provider.selected(sslEngine.getApplicationProtocol()); } catch (SSLException x) { diff --git a/jetty-alpn/jetty-alpn-java-server/src/main/java/org/eclipse/jetty/alpn/java/server/JDK9ServerALPNProcessor.java b/jetty-alpn/jetty-alpn-java-server/src/main/java/org/eclipse/jetty/alpn/java/server/JDK9ServerALPNProcessor.java index 44241ff3f3e..34c9424e9ae 100644 --- a/jetty-alpn/jetty-alpn-java-server/src/main/java/org/eclipse/jetty/alpn/java/server/JDK9ServerALPNProcessor.java +++ b/jetty-alpn/jetty-alpn-java-server/src/main/java/org/eclipse/jetty/alpn/java/server/JDK9ServerALPNProcessor.java @@ -46,7 +46,7 @@ public class JDK9ServerALPNProcessor implements ALPNProcessor.Server, SslHandsha if (LOG.isDebugEnabled()) LOG.debug("ALPN selecting among client{}", protocols); ALPN.ServerProvider provider = (ALPN.ServerProvider)ALPN.remove(sslEngine); - return provider.select(protocols); + return provider == null ? "" : provider.select(protocols); } catch (SSLException x) { diff --git a/jetty-http2/http2-http-client-transport/pom.xml b/jetty-http2/http2-http-client-transport/pom.xml index 7597989f66c..aafc6baebc7 100644 --- a/jetty-http2/http2-http-client-transport/pom.xml +++ b/jetty-http2/http2-http-client-transport/pom.xml @@ -55,6 +55,25 @@ + + jdk9 + + [1.9,) + + + + org.eclipse.jetty + jetty-alpn-java-client + ${project.version} + + + org.eclipse.jetty + jetty-alpn-java-server + ${project.version} + test + + + diff --git a/jetty-osgi/pom.xml b/jetty-osgi/pom.xml index f7db5a558ec..5f66795c152 100644 --- a/jetty-osgi/pom.xml +++ b/jetty-osgi/pom.xml @@ -37,7 +37,7 @@ - jdk9 + jdk8 [1.8,1.9) diff --git a/jetty-osgi/test-jetty-osgi/pom.xml b/jetty-osgi/test-jetty-osgi/pom.xml index 228a5b270a1..8b9123509fd 100644 --- a/jetty-osgi/test-jetty-osgi/pom.xml +++ b/jetty-osgi/test-jetty-osgi/pom.xml @@ -32,15 +32,13 @@ ${exam.version} test - - + org.ops4j.pax.exam pax-exam-container-forked ${exam.version} test - org.ops4j.pax.exam pax-exam-junit4 @@ -126,7 +124,6 @@ - org.eclipse.jetty.osgi jetty-httpservice @@ -139,14 +136,12 @@ jetty-osgi-servlet-api 3.1.0.M3 - org.apache.geronimo.specs geronimo-jta_1.1_spec 1.1.1 test - org.apache.geronimo.specs geronimo-atinject_1.0_spec @@ -159,7 +154,6 @@ 1.0.1 test - org.glassfish.web javax.servlet.jsp.jstl @@ -183,7 +177,6 @@ - org.eclipse.jetty.orbit javax.servlet.jsp.jstl @@ -330,7 +323,6 @@ jetty-schemas runtime - org.eclipse.jetty jetty-plus @@ -346,7 +338,6 @@ webbundle test - org.eclipse.jetty.tests test-spec-webapp @@ -354,14 +345,12 @@ war test - org.eclipse.jetty.tests test-container-initializer ${project.version} test - org.eclipse.jetty.osgi test-jetty-osgi-fragment @@ -379,7 +368,6 @@ test-mock-resources ${project.version} - org.eclipse.jetty.osgi test-jetty-osgi-context @@ -404,14 +392,13 @@ test - maven-surefire-plugin - + -Dmortbay-alpn-boot=${settings.localRepository}/org/mortbay/jetty/alpn/alpn-boot/${alpn.version}/alpn-boot-${alpn.version}.jar @@ -458,5 +445,4 @@ - diff --git a/tests/test-http-client-transport/pom.xml b/tests/test-http-client-transport/pom.xml index b45456c8578..bf7ad95d2ff 100644 --- a/tests/test-http-client-transport/pom.xml +++ b/tests/test-http-client-transport/pom.xml @@ -56,6 +56,26 @@ + + jdk9 + + [1.9,) + + + + org.eclipse.jetty + jetty-alpn-java-client + ${project.version} + test + + + org.eclipse.jetty + jetty-alpn-java-server + ${project.version} + test + + +