title: GRPC - .IllegalArgumentException: Jetty ALPN/NPN has not been properly configured
body: <p>I am trying to spin up the GRPC server with TLS enabled in docker container on pods but getting below error during server start up</p>
  
  <p>I am trying referring <a href="https://github.com/grpc/grpc-java/blob/master/SECURITY.md#transport-security-tls" rel="noreferrer">https://github.com/grpc/grpc-java/blob/master/SECURITY.md#transport-security-tls</a></p>
  
  <p>Java : jdk1.8.0_131
  OpenSSL version: OpenSSL 1.0.1e-fips</p>
  
  <p>Exception:</p>
  
  <pre><code>*Exception in thread "main" java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.
          at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:174)
          at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:151)
          at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:139)
          at io.grpc.netty.GrpcSslContexts.forServer(GrpcSslContexts.java:119)
          at io.grpc.netty.NettyServerBuilder.useTransportSecurity(NettyServerBuilder.java:377)
          at io.grpc.netty.NettyServerBuilder.useTransportSecurity(NettyServerBuilder.java:63)*
  </code></pre>
  
  <p>also want to know how I can test openssl approach locally ? </p>
  
  <p>this is how I am trying to run the jar: java -jar -Denv=e1 app.jar</p>
  
  <p>Below are the additional GRPC related POM dependencies specific to GRPC -I have in my POM:
  -- extension --</p>
  
  <pre><code>   &lt;extensions&gt;
          &lt;extension&gt;
              &lt;groupId&gt;kr.motd.maven&lt;/groupId&gt;
              &lt;artifactId&gt;os-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.4.0.Final&lt;/version&gt;
          &lt;/extension&gt;
      &lt;/extensions&gt;
  </code></pre>
  
  <p>--- plugin ----  </p>
  
  <pre><code>&lt;plugin&gt;
         &lt;groupId&gt;org.xolstice.maven.plugins&lt;/groupId&gt;
         &lt;artifactId&gt;protobuf-maven-plugin&lt;/artifactId&gt;
         &lt;version&gt;0.5.0&lt;/version&gt;
         &lt;configuration&gt;
        &lt;protocArtifact&gt;com.google.protobuf:protoc:3.2.0:exe:${os.detected.classifier}&lt;/protocArtifact&gt;
                      &lt;pluginId&gt;grpc-java&lt;/pluginId&gt;
                      &lt;pluginArtifact&gt;io.grpc:protoc-gen-grpc-java:1.3.0:exe:${os.detected.classifier}&lt;/pluginArtifact&gt;
        &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;compile&lt;/goal&gt;
                              &lt;goal&gt;compile-custom&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  </code></pre>
  
  <p>--- dependencies ---</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;io.grpc&lt;/groupId&gt;
              &lt;artifactId&gt;grpc-netty&lt;/artifactId&gt;
              &lt;version&gt;1.3.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
              &lt;groupId&gt;io.grpc&lt;/groupId&gt;
              &lt;artifactId&gt;grpc-protobuf&lt;/artifactId&gt;
              &lt;version&gt;1.3.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
              &lt;groupId&gt;io.grpc&lt;/groupId&gt;
              &lt;artifactId&gt;grpc-stub&lt;/artifactId&gt;
              &lt;version&gt;1.3.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
              &lt;groupId&gt;io.netty&lt;/groupId&gt;
              &lt;artifactId&gt;netty-tcnative-boringssl-static&lt;/artifactId&gt;
              &lt;version&gt;2.0.1.Final&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Can Openssl / jdk version be the problem ?</p>