Skip to content
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

gRPC reflection fails with java.lang.NoSuchMethodError #1502

Closed
jasonschroeder-sfdc opened this issue Oct 16, 2023 · 1 comment · Fixed by #1504
Closed

gRPC reflection fails with java.lang.NoSuchMethodError #1502

jasonschroeder-sfdc opened this issue Oct 16, 2023 · 1 comment · Fixed by #1504

Comments

@jasonschroeder-sfdc
Copy link
Collaborator

I am troubleshooting connectivity with my BuildFarm services.

I see that ProtoReflectionService is added to the BuildFarmServer.java, but when invoking it, the server logs an exception:

Exception in thread "grpc-default-executor-267259" java.lang.NoSuchMethodError: 'boolean com.google.protobuf.GeneratedMessageV3.isStringEmpty(java.lang.Object)'
     at io.grpc.reflection.v1alpha.ServerReflectionResponse.getSerializedSize(ServerReflectionResponse.java:385)
     at io.grpc.protobuf.lite.ProtoInputStream.available(ProtoInputStream.java:108)
     at io.grpc.internal.MessageFramer.getKnownLength(MessageFramer.java:208)
     at io.grpc.internal.MessageFramer.writePayload(MessageFramer.java:138)
     at io.grpc.internal.AbstractStream.writeMessage(AbstractStream.java:66)
     at io.grpc.internal.ServerCallImpl.sendMessageInternal(ServerCallImpl.java:167)
     at io.grpc.internal.ServerCallImpl.sendMessage(ServerCallImpl.java:151)
     at io.grpc.ForwardingServerCall.sendMessage(ForwardingServerCall.java:32)
     at io.grpc.util.TransmitStatusRuntimeExceptionInterceptor$SerializingServerCall.access$001(TransmitStatusRuntimeExceptionInterceptor.java:121)
     at io.grpc.util.TransmitStatusRuntimeExceptionInterceptor$SerializingServerCall$1.run(TransmitStatusRuntimeExceptionInterceptor.java:137)
     at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
     at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31)
     at io.grpc.internal.SerializingExecutor.schedule(SerializingExecutor.java:102)
     at io.grpc.internal.SerializingExecutor.execute(SerializingExecutor.java:95)
     at io.grpc.util.TransmitStatusRuntimeExceptionInterceptor$SerializingServerCall.sendMessage(TransmitStatusRuntimeExceptionInterceptor.java:134)
     at io.grpc.stub.ServerCalls$ServerCallStreamObserverImpl.onNext(ServerCalls.java:380)
     at io.grpc.protobuf.services.ProtoReflectionService$ProtoReflectionStreamObserver.listServices(ProtoReflectionService.java:274)
     at io.grpc.protobuf.services.ProtoReflectionService$ProtoReflectionStreamObserver.handleReflectionRequest(ProtoReflectionService.java:186)
     at io.grpc.protobuf.services.ProtoReflectionService$ProtoReflectionStreamObserver.onNext(ProtoReflectionService.java:167)
     at io.grpc.protobuf.services.ProtoReflectionService$ProtoReflectionStreamObserver.onNext(ProtoReflectionService.java:141)
     at io.grpc.stub.ServerCalls$StreamingServerCallHandler$StreamingServerCallListener.onMessage(ServerCalls.java:262)
     at io.grpc.ForwardingServerCallListener.onMessage(ForwardingServerCallListener.java:33)
     at io.grpc.util.TransmitStatusRuntimeExceptionInterceptor$1.onMessage(TransmitStatusRuntimeExceptionInterceptor.java:65)
     at io.grpc.ForwardingServerCallListener.onMessage(ForwardingServerCallListener.java:33)
     at io.grpc.Contexts$ContextualizedServerCallListener.onMessage(Contexts.java:76)
     at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.messagesAvailableInternal(ServerCallImpl.java:324)
     at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.messagesAvailable(ServerCallImpl.java:309)
     at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1MessagesAvailable.runInContext(ServerImpl.java:833)
     at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
@jasonschroeder-sfdc
Copy link
Collaborator Author

Related: protocolbuffers/protobuf#9236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant