-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using GRPC via SSL leads to NoClassDefFoundError #102
Comments
@fedinskiy It's not bug. Remove the io.netty:netty-tcnative-boringssl-static dependecy from dependecy managment. After that the scenario from reproducer will work |
@fedinskiy add vertx-dependencies to the dependencies managment and remove tcnative version or set tcnative version to 2.0.36.Final |
@akoniar the second workaround works(but I suspect, that this change should be described somewhere, especially since we talk about a patch, and not a major version). |
@fedinskiy I took this version from https://repo.maven.apache.org/maven2/io/vertx/vertx-dependencies/3.9.7/vertx-dependencies-3.9.7.pom
and add tcnative dep
Then the reproducer works (for me) (BTW this is the supported use case) On the other hand the vertx-grpc documentation should be improved. I missing information about setting up vertx-dependecies or netty-tcnative-boringssl-static version |
Version
3.9.7
Context
After updating vertx-grpc 3.9.6 to 3.9.7 an attempt to use grpc client to communicate with the server via ssl leads to this exception:
java.lang.ClassNotFoundException: io.netty.internal.tcnative.SSLSessionCache
(full stacktrace can be seen here: https://gist.github.com/fedinskiy/04fd1658ab58516b5a2be24b8a378872)Do you have a reproducer?
Steps to reproduce
Run test:
mvn clean verify -Dvertx.version=3.9.7
Result: test fails.
Expected result:
Test succeeds, same as running:
mvn clean verify -Dvertx.version=3.9.6
The text was updated successfully, but these errors were encountered: