vio-lin commented on issue #8875:
URL: https://github.com/apache/dubbo/issues/8875#issuecomment-924738777


   倒是没有报错。 
   org.apache.dubbo.gen.grpc.DubboGrpcGenerator dubbo的的代码里面生成grpc  代码的 
maven插件代码  
   ```
   public class DubboGrpcGenerator extends AbstractGenerator {
   
       public static void main(String[] args) {
           if (false) {
               ProtocPlugin.generate(new DubboGrpcGenerator());
           } else {
               ProtocPlugin.debug(new 
DubboGrpcGenerator(),"D:\\Users\\guo.lin\\git\\cdubbo\\cdubbo-demo3\\src\\main\\proto\\Greeter.proto");
           }
       }
   }
   ```
   我传递proto 文件进去 然后有如下报错
   ```
   com.google.protobuf.InvalidProtocolBufferException$InvalidWireTypeException: 
Protocol message tag had invalid wire type.
        at 
com.google.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:115)
        at 
com.google.protobuf.UnknownFieldSet$Builder.mergeFieldFrom(UnknownFieldSet.java:551)
        at 
com.google.protobuf.UnknownFieldSet$Builder.mergeFrom(UnknownFieldSet.java:514)
        at 
com.google.protobuf.UnknownFieldSet$Builder.mergeFrom(UnknownFieldSet.java:633)
        at 
com.google.protobuf.UnknownFieldSet$Builder.mergeFrom(UnknownFieldSet.java:295)
        at 
com.google.protobuf.CodedInputStream$ArrayDecoder.readGroup(CodedInputStream.java:856)
   ```
   所以第二个参数需要传递什么进去才可以做到调试呢。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to