Functional Test Failed
mdsabz opened this issue · 2 comments
After downloading the source play-java-grpc-example, the application compiles and would run as expected.
When running the HelloFunctionalTest, in the sample application play-java-grpc-example we get the following error. Any pointers?
java.lang.IllegalArgumentException: gRPC client can't automatically find HTTP/2 connection: no valid endpoints available. ServerEndpoints(List(ServerEndpoint(Netty HTTP/1.1 (plaintext),http,localhost,45727,Set(1.0, 1.1),Some(netty),None), ServerEndpoint(Netty HTTP/1.1 (encrypted),https,localhost,33173,Set(1.0, 1.1),Some(netty),Some(ClientSsl(javax.net.ssl.SSLContext@6d0be7ab,sun.security.ssl.X509TrustManagerImpl@1d4fb213)))))
Hi @mdsabz,
I suspect the problem is you are running the tests on a vanilla sbt
session. Because gRPC requires HTTP/2
support, running this sample requires appending the ALPN Agent to the JVM that runs sbt
. To handle this complexity the play-java-grpc-example includes a script called ssl-play
which is effectively an sbt
launcher with support for SSL and HTTP/2
. SO, instead of using sbt
, use ssl-play
.