Skip to content
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

调用dubbo http协议的服务问题 #4

Closed
zhangzc0419 opened this issue May 4, 2018 · 7 comments
Closed

调用dubbo http协议的服务问题 #4

zhangzc0419 opened this issue May 4, 2018 · 7 comments
Labels
type/question & discussion Further information is requested

Comments

@zhangzc0419
Copy link

我的dubbo服务改成http协议之后,调用遇到些问题
因为不是dubbo协议所以Server Setting没用dubbo的直连方式
Server Setting使用zookeeper协议
异常信息:
{"detailMessage":null,"stackTrace":[{"declaringClass":"cn.tsoft.framework.testing.jmeter.plugin.dubbo.sample.DubboSample","methodName":"callDubbo","fileName":"DubboSample.java","lineNumber":355},{"declaringClass":"cn.tsoft.framework.testing.jmeter.plugin.dubbo.sample.DubboSample","methodName":"sample","fileName":"DubboSample.java","lineNumber":234},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"executeSamplePackage","fileName":"JMeterThread.java","lineNumber":498},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"processSampler","fileName":"JMeterThread.java","lineNumber":424},{"declaringClass":"org.apache.jmeter.threads.JMeterThread","methodName":"run","fileName":"JMeterThread.java","lineNumber":255},{"declaringClass":"java.lang.Thread","methodName":"run","fileName":null,"lineNumber":-1}],"suppressedExceptions":[]}

@ningyu1
Copy link
Collaborator

ningyu1 commented May 7, 2018

@zhangzc0419 能说明一下是那个版本出现的问题?还有就是能否提供完整的异常?感谢

@zhangzc0419
Copy link
Author

1.2.6
结果树完整的信息就是上面这个
没有调到实际的服务
dubbo服务端使用的http协议
server settings如下示意:
Protocol:Zookeeper@注册中心
Address:127.0.0.1:2181

@ningyu1
Copy link
Collaborator

ningyu1 commented May 10, 2018

@zhangzc0419 如果你们启用的http协议后,访问方式是通过http://ip:port/contextpath/${path}[/${method}][/${version}][/${group}]这种的话,请直接使用jmeter的http sample去做测试,dubbo sample就不适合使用。dubbo http协议支持的有些问题,不太清楚你们是通过那种方式开启的http协议?是用的dubbox还是dubbo-plus或者是其他

@zhangzc0419
Copy link
Author

<dubbo:protocol name="http" port="8080" />
是dubbo内置的这种
http://dubbo.apache.org/books/dubbo-user-book/references/protocol/http.html

@ningyu1
Copy link
Collaborator

ningyu1 commented May 10, 2018

@zhangzc0419 插件调用使用GenericService泛化调用,当protocol=http时我测试下来是报错的,因为dubbo的http协议调用采用org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor调用,泛化引用GenericService的代理对象调用会出现错误,这个我去dubbo上提一个issue

@ningyu1
Copy link
Collaborator

ningyu1 commented May 10, 2018

@zhangzc0419 issue连接:apache/dubbo#1768

@ningyu1 ningyu1 added the type/question & discussion Further information is requested label May 10, 2018
@zhangzc0419
Copy link
Author

OK thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question & discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants