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
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
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!
Exception in thread "main" java.lang.NullPointerException
at org.apache.dubbo.config.AbstractInterfaceConfig.lambda$null$7(AbstractInterfaceConfig.java:628)
at java.util.Optional.orElseGet(Optional.java:267)
The text was updated successfully, but these errors were encountered:
hzhxxx
changed the title
dubbo 2.7.4 版本dubbo-demo 运行报错,无法初始化配置器
dubbo 2.7.4.1 版本dubbo-demo 运行报错,无法初始化配置器
Nov 20, 2019
Environment
Steps to reproduce this issue
dubbo 2.7.4 版本dubbo-demo 运行报错,无法初始化配置器
运行 dubbo-demo-api-provider,使用 zookeeper 3.5,已经确认zk 正常。
service.setRegistry(new RegistryConfig("zookeeper://192.168.1.203:2181"));
运行报错,错误位于 AbstractInterfaceConfig::useRegistryForConfigIfNecessary
的 628 行
cc.getParameters().put(org.apache.dubbo.remoting.Constants.CLIENT_KEY,rc.getClient());
提示 rc.getClient() 为空
使用 nacos 正常,修改代码,编译运行正常
service.setRegistry(new RegistryConfig("nacos://192.168.1.207:8848"));
dubbo-demo-xml-provider 也是相同的错误
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
What do you expected from the above steps?
Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
The text was updated successfully, but these errors were encountered: