Grpc netty handler libraries are conflicting with OpenJSSE

294 views Asked by At

I'm facing a classCastException issue while using grpc netty handlers along with OpenJSSE.

We are working on gRPC calls (which use Netty handlers for SSL communication). However, this is a Java agent and is supposed to be on a different runtime. The runtime that we are trying to intercept is running on OpenJSSE using -XX:+UseOpenJSSE.

Here is the issue—running the gRPC client and server throws:

java.lang.ClassCastException: io.netty.handler.ssl.OpenSslEngine cannot be cast to org.openjsse.javax.net.ssl.SSLEngine
0

There are 0 answers