是的,你的提示缺少方法部分......这是我需要让我的 grpc 工作的提示(最后一个是你描述的错误)
@TypeHints({ //
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerIndexField",
fields = @FieldHint(name = "producerIndex", allowUnsafeAccess = true)), //
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerLimitField",
fields = @FieldHint(name = "producerLimit", allowUnsafeAccess = true)), //
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueConsumerIndexField",
fields = @FieldHint(name = "consumerIndex", allowUnsafeAccess = true)), //
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueProducerFields",
fields = @FieldHint(name = "producerIndex", allowUnsafeAccess = true)), //
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueColdProducerFields",
fields = @FieldHint(name = "producerLimit", allowUnsafeAccess = true)), //
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueConsumerFields",
fields = @FieldHint(name = "consumerIndex", allowUnsafeAccess = true)), //
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.buffer.AbstractByteBufAllocator", access = AccessBits.ALL),
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.channel.ReflectiveChannelFactory", access = AccessBits.ALL),
@TypeHint(typeNames = "io.grpc.netty.shaded.io.netty.channel.socket.nio.NioSocketChannel", methods = @MethodHint(name = "<init>")) })