Skip to content

RMI protocol doesn't support generic invocation. #2779

Closed
@lgw8186

Description

@lgw8186

泛化执行cs架构发布的dubbo接口异常,调用其他dubbo接口没有问题

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.8.4
  • Operating System version: xxx
  • Java version: xxx

Steps to reproduce this issue

  1. xxx
  2. xxx
  3. xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

### 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)

What do you expected from the above steps?

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedEverything needs help from contributors

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions