Failed to frame message

1,554 views
Skip to first unread message

ric...@deepintent.com

unread,
Jul 30, 2018, 1:10:37 PM7/30/18
to grpc.io
Hi,

I am trying to debug a situation where I have 3 GRPC services using the GRPC java. Each of the projects is a submodule of the parent maven project and I'm using java 10. 1 of my services has stopped working and the client error is saying io.grpc.StatusRuntimeException: INTERNAL: Failed to frame message.

I can include the protobuf file if it will help, but it's not a super complex interface. If anyone has any ideas on what additional steps I could take to debug, I would appreciate it. I am super confused on why 2 of the 3 services still work, and if I implement the interface in 1 of the other projects, the interface works correctly. The pom file of the 2 submodules are identical.

Thanks in advance,
Rickey

ric...@deepintent.com

unread,
Jul 30, 2018, 1:17:45 PM7/30/18
to grpc.io
Additionally, this happens on both grpc-java 1.12 and 1.13.2.

Carl Mastrangelo

unread,
Jul 30, 2018, 6:15:09 PM7/30/18
to grpc.io
Can you include the full stack trace?

ric...@deepintent.com

unread,
Jul 30, 2018, 7:18:45 PM7/30/18
to grpc.io
Sure, here it is. The request message has a single string field.

io.grpc.internal.SerializingExecutor run
SEVERE: Exception while executing runnable io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed@f8594c1
reactor.core.Exceptions$ErrorCallbackNotImplemented: io.grpc.StatusRuntimeException: INTERNAL: Failed to frame message
Caused by: io.grpc.StatusRuntimeException: INTERNAL: Failed to frame message
at io.grpc.Status.asRuntimeException(Status.java:526)
at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:419)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:471)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:553)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:474)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:591)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:844)

Carl Mastrangelo

unread,
Aug 1, 2018, 7:05:40 PM8/1/18
to grpc.io
What is ErrorCallbackNotImplemented ?    There should be a cause included in our exception.

ric...@deepintent.com

unread,
Aug 1, 2018, 10:44:01 PM8/1/18
to grpc.io
We are using salesforce's reactor-grpc and that is what the original client stack trace is from. I tested with a client using the standard blocking stub and below is the stack trace. Thanks

Exception in thread "main" io.grpc.StatusRuntimeException: INTERNAL: Failed to frame message
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:222)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:203)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:132)
at com.deepintent.common.protobuf.WESGrpc$WESBlockingStub.fetchEntities(WESGrpc.java:381)
at com.deepintent.client.Client.main(Client.java:143)

ric...@deepintent.com

unread,
Aug 2, 2018, 3:11:39 PM8/2/18
to grpc.io
Additionally, if run under java 8 instead of java 10, below is the stack trace. It is even less useful than before. Is there anything I can do to get more information about this error?

Exception in thread "main" io.grpc.StatusRuntimeException: UNKNOWN
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:222)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:203)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:132)
at com.deepintent.common.protobuf.WESGrpc$WESBlockingStub.fetchEntities(WESGrpc.java:381)
at com.deepintent.client.Client.main(Client.java:143)

Eric Anderson

unread,
Aug 3, 2018, 6:46:02 PM8/3/18
to ric...@deepintent.com, grpc-io
These various exceptions should have another "Caused by" exception underneath. "Failed to frame message" always includes an additional cause.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/7dc2bd2f-aa4f-423d-b527-2e0ce6c12b2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages