-
Notifications
You must be signed in to change notification settings - Fork 918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用java服务报错reflect: call of reflect.Value.MethodByName on zero Value #2403
Comments
请问使用的 dubbo-go 版本是? 3.1.0 吗? |
是的 |
@ssfyn 可以给一份go侧的配置内容吗? |
dubbo:
application:
name: go-example
module: example
organization: example
owner: me
environment: local
registries:
demoZK:
protocol: zookeeper
timeout: 3s
address: 127.0.0.1:2181
registry-type: all
metadata-report:
protocol: zk
address: 127.0.0.1:2181
protocols:
triple:
name: tri
port: 20000
provider:
services:
GreeterServerImpl:
protocol: tri
interface: "com.goexample.Greeter"
consumer:
references:
GreeterClientImpl:
interface: "org.apache.dubbo.samples.tri.unary.Greeter"
protocol: "tri" |
已经找到了问题链路,java侧的配置也能发一下么? |
配置文件是这个 dubbo:
application:
name: dubbo-springboot-demo-provider
protocol:
name: tri
port: -1
registry:
address: zookeeper://127.0.0.1:2181 java这块儿起的服务是直接使用的这个demo: |
404 - page not found, is 3.2 branch ? |
应该是这个https://github.com/apache/dubbo-samples/tree/3.2/1-basic/dubbo-samples-triple-unary |
reproduced success,in dubbo-go tri depens on some stub method in generated pb.go file, func (c *GreeterClientImpl) GetDubboStub(cc *triple.TripleConn) GreeterClient {
return NewGreeterClient(cc)
} in metadata module it use low level api to invoke rpc, no pb.go file and GetDubboStub method generated dubbo-go/metadata/service/local/service_proxy.go Lines 175 to 190 in d204c4e
in fact tri protocol not supported in metadata service rpc client |
@ssfyn in java server side,set |
问题
dubbo.metadata-service.url-params
中proto
是dubbo
,但java的服务是tri
,不确定和这个有没有关系。错误讯息
The text was updated successfully, but these errors were encountered: