我正在创建一个 gRPC 项目并运行,运行几次后我收到此错误。错误号(在第一行)不一致。它会一次是“grpc-default-executor-0”,然后是“grpc-default-executor-4”或“grpc-default-executor-1”或类似的。我正在创建另一个项目,有时第一次,有时几次之后我都会收到同样的错误。
Exception in thread "grpc-default-executor-0" java.lang.NoSuchMethodError: com.yeditepe.grpc.User$APIResponse$Builder.<init>(Lcom/taner/grpc/User$APIResponse$Builder;)V
at com.taner.grpc.User$APIResponse.toBuilder(User.java:1007)
at com.taner.grpc.User$APIResponse.newBuilder(User.java:999)
at user.UserService.login(UserService.java:19)
at com.taner.grpc.userGrpc$MethodHandlers.invoke(userGrpc.java:279)
at io.grpc.stub.ServerCalls$UnaryServerCallHandler$UnaryServerCallListener.onHalfClose(ServerCalls.java:171)
at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:283)
at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:707)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
我怎样才能解决这个问题?