springboot dubbo不支持protobuf吗?
ken821021 opened this issue · 1 comments
`@DubboService
public class ProtoDemoService implements ProtoDemoServiceDubbo.IProtoDemoService {
@Value("${dubbo.application.name}")
private String serverName;
@Override
public HelloReply sayHello(HelloRequest request) {
HelloReply.Builder builder = HelloReply.newBuilder();
builder.setMessage("Hello " + request.getName() + ":" + serverName);
return builder.build();
}
@Override
public CompletableFuture<HelloReply> sayHelloAsync(HelloRequest request) {
return CompletableFuture.completedFuture(sayHello(request));
}
}
`
注册中心没有注册服务,启动consumer提示:
Failed to check the status of the service hk.grwth.vod.rpc.ProtoDemoServiceDubbo$IProtoDemoService. No provider available for the service hk.grwth.vod.rpc.ProtoDemoServiceDubbo$IProtoDemoService
https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-protobuf
用这个sample结合nacos会报:
[31/12/20 17:05:31:417 CST] com.alibaba.nacos.naming.beat.sender ERROR client.naming: [NA] failed to request ErrCode:400, ErrMsg:caused: dom name can only have these characters: 0-9a-zA-Z-._:, current: DEFAULT_GROUP@@providers:org.apache.dubbo.demo.DemoServiceDubbo$IDemoService::;
😄,貌似是nacos的锅