You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "xcorpio (GitHub)" <gi...@apache.org> on 2019/09/25 11:32:45 UTC

[GitHub] [dubbo] xcorpio commented on issue #5114: ReferenceConfig 中的 interfaceClass 赋值两次

我写了个继承`ReferenceConfig`的类,在 `get()` 时如果 `interfaceClass` 存在就不在 `Class.forName`啦, 但是又报了这个
```
java.lang.IllegalArgumentException: interface pea.dubbo.api.GreetingService is not visible from class loader
	at com.alibaba.dubbo.common.bytecode.Proxy.getProxy(Proxy.java:96)
	at com.alibaba.dubbo.common.bytecode.Proxy.getProxy(Proxy.java:69)
	at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:35)
	at com.alibaba.dubbo.rpc.proxy.AbstractProxyFactory.getProxy(AbstractProxyFactory.java:64)
	at com.alibaba.dubbo.rpc.proxy.AbstractProxyFactory.getProxy(AbstractProxyFactory.java:34)
	at com.alibaba.dubbo.rpc.proxy.wrapper.StubProxyFactoryWrapper.getProxy(StubProxyFactoryWrapper.java:65)
	at com.alibaba.dubbo.rpc.ProxyFactory$Adaptive.getProxy(ProxyFactory$Adaptive.java)
```

啊,有啥解决办法吗

[ Full content available at: https://github.com/apache/dubbo/issues/5114 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org