11D-Beyonder commented on issue #14781:
URL: https://github.com/apache/dubbo/issues/14781#issuecomment-2416519905

   > Are you also unable to start it in IDEA? Currently, I haven't encountered 
any issues using version 3.3.0 in IDEA.@11D-Beyonder
   
   I did not find the cause of the problem, but there are some clues to offer.
   
   I came to the conclusion that the values of `package` and `option 
java_package` in the IDL file must be the same.
   
   For example, if the IDL file is like this:
   
   ```protobuf
   package org.apache.dubbo.springboot.demo.idl;
   option java_package = "org.apache.dubbo.springboot.demo.idl";
   ```
   
   or the `java_package` is not specified, the request to 
`http://localhost:50052/org.apache.dubbo.springboot.demo.idl.Greeter/greet/` 
works fine.
   
   However, if the `java_package` is specified and don't equal to the value of 
`package`, the request will fail. For example, if the IDL file is like this:
   
   ```protobuf
   package org.apache.dubbo.springboot.demo.idl;
   option java_package = "org.apache.dubbo.springboot.demo.api";
   ```
   
   The request to both 
`http://localhost:50052/org.apache.dubbo.springboot.demo.idl.Greeter/greet/` 
and 
`http://localhost:50052/org.apache.dubbo.springboot.demo.api.Greeter/greet/` 
will fail.
   
   I'm a beginner to Dubbo, and I don't know if this is a Bug or a design 
consideration. Hope to get some answers, thank you. @heliang666s 


-- 
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