<p dir="auto">泛化执行cs架构发布的dubbo接口异常，调用其他dubbo接口没有问题</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.8.4</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>xxx</li>
<li>xxx</li>
<li>xxx</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="### 13:46:22.408 [main] DEBUG org.springframework.remoting.rmi.RmiProxyFactoryBean - Located RMI stub with URL [rmi://1xxx.xx.xx.xx:9901/com.uc56.core.server.opt.service.IBillService]
13:46:22.408 [main] DEBUG org.springframework.remoting.rmi.RmiProxyFactoryBean - RMI stub [rmi://1xxx.xx.xx.xx:9901/com.uc56.core.server.opt.service.IBillService] is an RMI invoker
13:46:22.450 [main] DEBUG org.springframework.aop.framework.JdkDynamicAopProxy - Creating JDK dynamic proxy: target source is EmptyTargetSource: no target class, static
13:46:29.501 [main] ERROR cn.uce.atp.executor.utils.DubboServiceFactoryUtil - dubbo接口调用异常：
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method $invoke in the service com.alibaba.dubbo.rpc.service.GenericService. Tried 3 times of the providers [1xxx.xx.xx.xx:9901] (1/1) from the registry 10.xx.xx.117:2181 on the consumer 10.xx.xx.66 using the dubbo version 2.8.4. Last error is: Failed to invoke remote service: interface com.alibaba.dubbo.rpc.service.GenericService, method: $invoke, cause: Invocation of method [public abstract java.lang.Object com.alibaba.dubbo.rpc.service.GenericService.$invoke(java.lang.String,java.lang.String[],java.lang.Object[]) throws com.alibaba.dubbo.rpc.service.GenericException] failed in RMI service [rmi://1xxx.xx.xx.xx:9901/com.uc56.core.server.opt.service.IBillService]; nested exception is java.lang.NoSuchMethodException: com.sun.proxy.$Proxy425.$invoke(java.lang.String, [Ljava.lang.String;, [Ljava.lang.Object;)
  at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:101)
  at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
  at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
  at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
  at com.alibaba.dubbo.common.bytecode.proxy0.$invoke(proxy0.java)
  at cn.uce.atp.executor.utils.DubboServiceFactoryUtil.invoke(DubboServiceFactoryUtil.java:97)
  at cn.uce.atp.executor.utils.InterfaceParamsUtils.main(InterfaceParamsUtils.java:225)"><pre class="notranslate"><code class="notranslate">### 13:46:22.408 [main] DEBUG org.springframework.remoting.rmi.RmiProxyFactoryBean - Located RMI stub with URL [rmi://1xxx.xx.xx.xx:9901/com.uc56.core.server.opt.service.IBillService]
13:46:22.408 [main] DEBUG org.springframework.remoting.rmi.RmiProxyFactoryBean - RMI stub [rmi://1xxx.xx.xx.xx:9901/com.uc56.core.server.opt.service.IBillService] is an RMI invoker
13:46:22.450 [main] DEBUG org.springframework.aop.framework.JdkDynamicAopProxy - Creating JDK dynamic proxy: target source is EmptyTargetSource: no target class, static
13:46:29.501 [main] ERROR cn.uce.atp.executor.utils.DubboServiceFactoryUtil - dubbo接口调用异常：
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method $invoke in the service com.alibaba.dubbo.rpc.service.GenericService. Tried 3 times of the providers [1xxx.xx.xx.xx:9901] (1/1) from the registry 10.xx.xx.117:2181 on the consumer 10.xx.xx.66 using the dubbo version 2.8.4. Last error is: Failed to invoke remote service: interface com.alibaba.dubbo.rpc.service.GenericService, method: $invoke, cause: Invocation of method [public abstract java.lang.Object com.alibaba.dubbo.rpc.service.GenericService.$invoke(java.lang.String,java.lang.String[],java.lang.Object[]) throws com.alibaba.dubbo.rpc.service.GenericException] failed in RMI service [rmi://1xxx.xx.xx.xx:9901/com.uc56.core.server.opt.service.IBillService]; nested exception is java.lang.NoSuchMethodException: com.sun.proxy.$Proxy425.$invoke(java.lang.String, [Ljava.lang.String;, [Ljava.lang.Object;)
  at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:101)
  at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
  at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
  at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
  at com.alibaba.dubbo.common.bytecode.proxy0.$invoke(proxy0.java)
  at cn.uce.atp.executor.utils.DubboServiceFactoryUtil.invoke(DubboServiceFactoryUtil.java:97)
  at cn.uce.atp.executor.utils.InterfaceParamsUtils.main(InterfaceParamsUtils.java:225)
</code></pre></div>
<p dir="auto">What do you expected from the above steps？</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>
<p dir="auto">consume端发送URL时，怎么给URL添加自定义参数？</p>
<p dir="auto">查阅官方文档，发现有个“信息交换扩展（exchanger）”貌似可以实现在发送的URL里添加自定义参数。<br>
但，网上没有相关自定义扩展的案例，不知道如何实现？</p>
<p dir="auto">我期望的是：<br>
consume端，在发送URL时，携带sessionId一起发送，http请求。（求解）<br>
provider端，配有Spring Session的请求拦截器，通过URL获取到sessionId，以达到session共享的目的。（这部分已经扩展，可以从Cookie和URL里拦截请求获取sessionId）</p>
<p dir="auto">信息交换扩展<br>
扩展说明<br>
基于传输层之上，实现 Request-Response 信息交换语义。</p>
<p dir="auto">扩展接口<br>
com.alibaba.dubbo.remoting.exchange.Exchanger<br>
com.alibaba.dubbo.remoting.exchange.ExchangeServer<br>
com.alibaba.dubbo.remoting.exchange.ExchangeClient</p>
<p dir="auto">扩展配置<br>
&lt;dubbo:protocol exchanger="xxx" /&gt;</p>
<p dir="auto">&lt;dubbo:provider exchanger="xxx" /&gt;</p>
<p dir="auto">已知扩展<br>
com.alibaba.dubbo.remoting.exchange.exchanger.HeaderExchanger</p>