-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
java.lang.NoSuchFieldError: NAME_RESOLUTION_DELAYED #10583
Comments
As I'm seeing this in the context of a gRPC upgrade from 1.54.1 to 1.58.0, where I've hit #10576, I was wondering this
It's reproducible by grabbing that PR and running
There actually already was a Unit Test covering the same - and that one works. That @ejona86 might you have any suggestion what could be causing this? |
java.lang.NoSuchFieldError: NAME_RESOLUTION_DELAYED
at io.grpc.internal.ManagedChannelImpl$RealChannel$PendingCall.reprocess(ManagedChannelImpl.java:1083) So that's here:
which uses this: https:/grpc/grpc-java/blame/2cbc290755639bcbd57d7a1e5ecebe49a6562537/api/src/main/java/io/grpc/ClientStreamTracer.java#L34 which was introduced only 5 months ago in #10044 ... so it is in 1.58.0 but probably wasn't in 1.54.1 yet (haven't checked exactly). Which makes this smell like a classpath dependency hell issue - my project may have different versions of gRPC JAR?
|
This is almost certainly caused by version skew between the artifacts. Excluding grpc-util shouldn't be related. I expect somehow grpc-api 1.54.1 is being used (the symbol was added in 1.55.0). That shouldn't happen, as grpc-core is clearly 1.55+ and depends on grpc-api of the same version. That isn't part of the coursier results, as we can see in the lock file it is using 1.58.0. Also, this would be a more surprising result, as generally I only expect Maven to be bad enough to downgrade dependencies. Since it doesn't seem to be caused by maven_install, I suggest using |
@ejona86 yup, there is definitely a (huge) classpath mess on my project... ;-)
I have a much more fun idea... enola-dev/enola#297! Let me close this issue, as this is clearly not a gRPC "upstream" problem. |
What version of gRPC-Java are you using?
1.58.0
What is your environment?
Linux
What did you expect to see?
Test that worked in 1.54.1 fails when upgrading to 1.58.0.
What did you see instead?
Steps to reproduce the bug
It currently appears inside a documentation generation integration test on enola-dev/enola#295.
I will make it easier to reproduce by creating a unit test.
The text was updated successfully, but these errors were encountered: