You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/22 08:30:36 UTC

[GitHub] [dubbo] vio-lin opened a new issue #8875: 调试 org.apache.dubbo.gen.dubbo.DubboGenerator的时候输入参数是啥

vio-lin opened a new issue #8875:
URL: https://github.com/apache/dubbo/issues/8875


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: xxx
   * Operating System version: xxx
   * Java version: xxx
   
   ### Steps to reproduce this issue
   
   1. xxx
   2. xxx
   3. xxx
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   
   ### Actual Result
   
   What actually happens?
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] vio-lin commented on issue #8875: 调试 grpoc 代码生成器的时候 总是抛错 org.apache.dubbo.gen.dubbo.DubboGenerator 输入参数是啥 proto的文件吗

Posted by GitBox <gi...@apache.org>.
vio-lin commented on issue #8875:
URL: https://github.com/apache/dubbo/issues/8875#issuecomment-926280540


   我改了代码 把对象获取到写在了本地文件。看样子是protobufc 输出 protobuf格式的生成请求的对象到本地。   
   不管如何可以进行调试了。 


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] vio-lin commented on issue #8875: 调试 grpoc 代码生成器的时候 总是抛错 org.apache.dubbo.gen.dubbo.DubboGenerator 输入参数是啥 proto的文件吗

Posted by GitBox <gi...@apache.org>.
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] vio-lin closed issue #8875: 调试 grpoc 代码生成器的时候 总是抛错 org.apache.dubbo.gen.dubbo.DubboGenerator 输入参数是啥 proto的文件吗

Posted by GitBox <gi...@apache.org>.
vio-lin closed issue #8875:
URL: https://github.com/apache/dubbo/issues/8875


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] yangzan0816 commented on issue #8875: 调试 grpoc 代码生成器的时候 总是抛错 org.apache.dubbo.gen.dubbo.DubboGenerator 输入参数是啥 proto的文件吗

Posted by GitBox <gi...@apache.org>.
yangzan0816 commented on issue #8875:
URL: https://github.com/apache/dubbo/issues/8875#issuecomment-924726139


   能附带一下错误信息的截图么


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org