-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Error: Jetty ALPN/NPN has not been properly configured. #2483
Comments
Happy to provide whatever other info is required. |
attached the maven dep tree, might provide some clarity. |
forcing 2.0.5.Final or 2.0.6.Final of netty-tcnative-boringssl-static has no change either.
|
also ensuring that it has the correct classifier for boringssl-static has no affect.
|
Hmm! I tried this locally in a new Maven project:
and was able to make a call to create metrics. @qorpus Could you try creating a new Maven project to test? The code I used to test is this: LoggingOptions options = LoggingOptions.getDefaultInstance();
try (Logging logging = options.getService()) {
MetricInfo metricInfo =
MetricInfo.newBuilder("test-metric", "severity >= ERROR")
.setDescription("Log entries with severity higher or equal to ERROR")
.build();
logging.create(metricInfo);
} Are you using Tomcat or anything like that? |
@qorpus : have you set authorization credentials either using |
@jabubake - yeah that all seems fine, because if we roll back to 1.1.0 env it works correctly! |
vertx brings in an older version of netty, and possibly causing your issue, can you try adding
Looking at your dependency tree, likely you need to manage your guava version. |
@jabubake - tried that out, added in a raft of depManagement for netty packages, but alas no luck
|
@pongad - not using tomcat, we are using Apache Ignite and Springboot though. Will try out your suggestion and post results. |
@pongad - that worked fine, so clearly I am having some dependency conflicts. |
grpc/grpc-java#3025 is probably the canonical issue for this. |
I agree with @lesv . I'll close this as duplicate. Please reopen if required, though I believe this is a problem more fit for gRPC, not this repo. |
For those that landed on this issue from search, please see gRPC troubleshooting guide https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting |
I ran into the same error. Following previous Troubleshooting guide, indeed I had a dependency conflict. As the io.netty library was imported by another maven artefact not related to google. So I disabled temporarily the oldest one and left only the google cloud one. It all worked fine afterwards. |
An update: We have a PR to shade netty. Hopefully this means the problem will go away the next release. |
I am using google-cloud-vision version 1.32.0 with Java 8. It works fine in mac however when I tried on Linux with same Java 8, I am getting exception |
Which version of Linux? 32/64 bit? |
Related to #2266 - but is not resolved by anything in there either.
Stack trace
compatibility tool output.
The text was updated successfully, but these errors were encountered: