commit | 660a69b607e3f424c45d2fe7c18962c5617a2702 | [log] [tgz] |
---|---|---|
author | qixiaobo <qixiaobo.nj@gmail.com> | Fri Jul 26 19:58:24 2019 +0800 |
committer | qixiaobo <qixiaobo.nj@gmail.com> | Fri Jul 26 19:58:24 2019 +0800 |
tree | 69bfeae4e5b17abc85433f5f3914242d747c3907 | |
parent | fb6af3cbd393439568df739eb59b056dbd9feabb [diff] |
maybe we hava a method without args so it make a npe like below ``` Exception in thread "Dubbo-proxy-request-worker-pool-thread-3" java.lang.NullPointerException at org.apache.dubbo.proxy.worker.RequestWorker.run(RequestWorker.java:65) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) ```
Dubbo Proxy, a gateway of Dubbo, switch from HTTP request to Dubbo protocol,then invoke Dubbo service and return to the result. Later Dubbo Proxy would combine several features, including circuit breaker, current-limiting, api management.
HTTP request format:
{application Name}/{Interface name}?version={version}&group={group}
Group and version is the mapping data in Dubbo service.
http POST body:
{ "methodName" : "sayHello", "paramTypes" : ["org.apache.dubbo.demo.model.User"], "paramValues": [ { "id": 23, "username": "testUser" } ] }
application.yml
proxy.registry.address: zookeeper://127.0.0.1:2181 #registry center address, same as Dubbo service's proxy.metadata-report.address: zookeeper://127.0.0.1:2181 #metadata center address, used by paramType search, support for dubbo 2.7 or later