You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (StringsupportedExtension : supportedExtensions) {
protocols.put(supportedExtension, extensionLoader.getExtension(supportedExtension));
}
当遍历到http时,创建HttpProtocol报错:
Exception in thread "main" java.lang.IllegalStateException: Extension instance (name: http, class: interface org.apache.dubbo.rpc.Protocol) couldn't be instantiated: null
at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:691)
at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:445)
at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:429)
at cn.polarismesh.agent.plugin.dubbo2.polaris.PolarisRegistry.<init>(PolarisRegistry.java:49)
at cn.polarismesh.agent.plugin.dubbo2.polaris.PolarisRegistryFactory.getRegistry(PolarisRegistryFactory.java:22)
......
Caused by: java.lang.NoClassDefFoundError: com/googlecode/jsonrpc4j/HttpException
at org.apache.dubbo.rpc.protocol.http.HttpProtocol.<init>(HttpProtocol.java:60)
... 38 more
Caused by: java.lang.ClassNotFoundException: com.googlecode.jsonrpc4j.HttpException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 39 more
1. jsonrpc4j
问题记录
dubbo插件的
PolarisRegistry.java
构造器执行:当遍历到
http
时,创建HttpProtocol
报错:解决方案
在dubbo项目中,手动添加
jsonrpc4j
依赖问题归因
怀疑
jsonrpc4j
包冲突2. doList
问题记录
dubbo consumer端启动后,当
PolarisDirectory
的list(Invocation invocation)
方法执行:报错
解决方案
移除provider端的tag属性
问题归因
this.originalRegistryDirectory.doList(invocation)
执行时要走dubbo的路由,当执行到tag路由时会因为路由不匹配导致找不到对应的invoker,疑似无法兼容dubbo原本的tag路由,因此需要用户抛弃dubbo原本的路由,使用polaris提供的路由功能The text was updated successfully, but these errors were encountered: