-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Stop telling people Jetty ALPN has not been configured #3025
Comments
I have configured tcnative (as far as I can tell) but I get this error.
If I set the log level to debug I actually get something more helpful which is the following message prior to the exception above:
However, this isn't much help in itself since from what I can tell tcnative should work since I have the dependency in my pom file as follows:
Have I missed something or am I getting this in error. I feel that the UnsatisfiedLinkError should be a warning instead of a debug message at least. |
@conorgriffin are you running under tomcat ? netty/netty-tcnative#214 |
yeah so that was the issue but was only able to see a message helping me to find the root cause by using debug logging, I'd have expected a warning at least. I am running spring boot so I had to switch to using jetty instead of the built-in tomcat Thanks for the tip on the other issue all the same |
@conorgriffin, grpc-java 1.4.0 release should fix the Tomcat incompatibility. |
when is the 1.4.0 release scheduled? |
@conorgriffin It was released about a week ago: https://github.com/grpc/grpc-java/releases/tag/v1.4.0 |
Ah! I had just checked the README on master which still says 1.3.0. Thanks |
It looks like I'll naturally be fixing this as I add Conscrypt support in the Netty transport. |
Not sure when conscrypt will be in, but if it's going to take a while, it can be helpful to change the error message and refer the user to read https://github.com/grpc/grpc-java/blob/master/SECURITY.md :) |
also, suggest adding common troubleshooting techniques and resolutions, especially when trying to determining if it's a classpath conflict. |
This happens a lot - we are getting this from various sources. It would be nice if the error was changed to both talk about alternative choices, it should also talk about using Also it would be nice if you could check that it's a dependency issue at runtime and differentiate between the possible causes and give a better error message. |
This was fixed by #3604 |
For the record, ALPN errors can be generated because of mismatched 32 versus 64 bit, wrong JRE versions specified in build or test scripts, etc.. |
Also, older servers with glibc < version 2.7 will not work because of netty requirements. Yes, sigh, in 2018 my company has to support our code on these older servers. |
If both OpenSsl (tcnative) and Jetty ALPN are unavailable then we end up failing with "Jetty ALPN/NPN has not been properly configured". We should tell them to configure tcnative, and not encourage the use of Jetty ALPN.
The text was updated successfully, but these errors were encountered: