Closed tonyyang-svail closed 4 years ago
A gRPC call from the client results in the following error on the server.
Exception in thread "grpc-default-executor-0" java.lang.NoSuchMethodError: 'java.lang.String com.google.protobuf.CodedInputStream.readStringRequireUtf8()'
at org.sqlflow.parser.remote.ParserProto$ParserRequest.<init>(ParserProto.java:72)
at org.sqlflow.parser.remote.ParserProto$ParserRequest.<init>(ParserProto.java:34)
at org.sqlflow.parser.remote.ParserProto$ParserRequest$1.parsePartialFrom(ParserProto.java:546)
at org.sqlflow.parser.remote.ParserProto$ParserRequest$1.parsePartialFrom(ParserProto.java:540)
at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:89)
at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
at io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller.parseFrom(ProtoLiteUtils.java:223)
at io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller.parse(ProtoLiteUtils.java:215)
at io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller.parse(ProtoLiteUtils.java:118)
at io.grpc.MethodDescriptor.parseRequest(MethodDescriptor.java:301)
at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.messagesAvailable(ServerCallImpl.java:297)
at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1MessagesAvailable.runInContext(ServerImpl.java:738)
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:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
I feel we need unit tests on parser/remote
. I am not a Java programmer, anyone would like to add this feature?
We have finished implementing Java parser, so I am closing this issue.
I followed the instruction at https://github.com/sql-machine-learning/sqlflow/tree/develop/parser/remote, and the starting command of gRPC prints the following error messages.