惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
爱范儿
爱范儿
Y
Y Combinator Blog
Last Week in AI
Last Week in AI
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
月光博客
月光博客
Martin Fowler
Martin Fowler
A
About on SuperTechFans
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
博客园 - 聂微东
宝玉的分享
宝玉的分享

2019

写给 2019 年的告别辞(矫情向) 今年似乎还没看见有晒 Gayhub 的 Contributions 和代码行数的 新年的最后一天,各位有什么要说的吗? 所以 20 世纪 10 年代最后一天,大家又给自己重新立了啥 Flog 吗? 大家来用自己的专业/行业的语言形容下自己的 2019 吧 四个字总结 2019,四个字瞭望 2020 年底了,有没有讨厌开年会的? 年底了,来一起盘点一下今年互联网的新变化吧? 很难相信 2020 年就快到了...2019 年这一年大家过得怎么样? 分享一下 2020 春运火车票预售时间表,又要准备抢票了 生日快乐,人民万岁! 十一回家没有票 开发双周报 7 月 16 日-8 月 5 日 itunes 备份必须要设置密码吗? 为什么 OneDrive 中的文件占用空间小于文件大小? 上海垃圾分类了,去上海捡瓶子会赚钱吗? 十万用户的后台,应该选择什么级别的服务器 laravel 中是否使用 repository? 想做个网站, 有接活的吗? 发现了一个充值漏洞你们会怎么折腾.... 想知道大家上班会划水么? 就没有一个人觉得笔记本电脑下面的键盘鸡肋么,尤其对于超极本而言,反正都要外接自己键盘的。 康云科技 陪您看世界 杭州西湖区租房 有没有用过的解答一下, uni-app 和 mpvue 的区别 iPhone 系统的问题...去哪反馈 老司机们,求带。最近准备换电脑,推荐一下,初步准备 联想 Y7000 共享通讯,一个盒子+一部手机就能搞定 facebook crawler VMware 的产品在大家公司内部用的多吗?
Spring Boot 第一次配置 Dubbo 就报错,不知道怎么解决
JYChiu · 2019-08-05 · via 2019
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-08-05 11:30:08.462 ERROR 4435 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quickStartConsumer' defined in file [/Users/chiu/Documents/IdeaProjects/springboot_dubbo_zk/consumer/target/classes/com/xxx/consumer/QuickStart/QuickStartConsumer.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: quickStartConsumer; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://127.0.0.1:20880/com.xxx.ServiceAPI?application=the-consumer&codec=dubbo&dubbo=2.6.0&heartbeat=60000&interface=com.xxx.ServiceAPI&methods=sendMessage&pid=4435&register.ip=192.168.124.4&side=consumer&timestamp=1564975808256): client(url: dubbo://127.0.0.1:20880/com.xxx.ServiceAPI?application=the-consumer&codec=dubbo&dubbo=2.6.0&heartbeat=60000&interface=com.xxx.ServiceAPI&methods=sendMessage&pid=4435&register.ip=192.168.124.4&side=consumer&timestamp=1564975808256) failed to connect to server /127.0.0.1:20880, error message is:Connection refused
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:601) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
    at com.xxx.consumer.ConsumerApp.main(ConsumerApp.java:15) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: quickStartConsumer; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://127.0.0.1:20880/com.xxx.ServiceAPI?application=the-consumer&codec=dubbo&dubbo=2.6.0&heartbeat=60000&interface=com.xxx.ServiceAPI&methods=sendMessage&pid=4435&register.ip=192.168.124.4&side=consumer&timestamp=1564975808256): client(url: dubbo://127.0.0.1:20880/com.xxx.ServiceAPI?application=the-consumer&codec=dubbo&dubbo=2.6.0&heartbeat=60000&interface=com.xxx.ServiceAPI&methods=sendMessage&pid=4435&register.ip=192.168.124.4&side=consumer&timestamp=1564975808256) failed to connect to server /127.0.0.1:20880, error message is:Connection refused
    at com.alibaba.dubbo.spring.boot.DubboConsumerAutoConfiguration$1.postProcessBeforeInitialization(DubboConsumerAutoConfiguration.java:100) ~[dubbo-spring-boot-starter-2.0.0.jar:na]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:414) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1770) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
    ... 15 common frames omitted
Caused by: com.alibaba.dubbo.rpc.RpcException: Fail to create remoting client for service(dubbo://127.0.0.1:20880/com.xxx.ServiceAPI?application=the-consumer&codec=dubbo&dubbo=2.6.0&heartbeat=60000&interface=com.xxx.ServiceAPI&methods=sendMessage&pid=4435&register.ip=192.168.124.4&side=consumer&timestamp=1564975808256): client(url: dubbo://127.0.0.1:20880/com.xxx.ServiceAPI?application=the-consumer&codec=dubbo&dubbo=2.6.0&heartbeat=60000&interface=com.xxx.ServiceAPI&methods=sendMessage&pid=4435&register.ip=192.168.124.4&side=consumer&timestamp=1564975808256) failed to connect to server /127.0.0.1:20880, error message is:Connection refused
    at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initClient(DubboProtocol.java:404) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getSharedClient(DubboProtocol.java:367) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getClients(DubboProtocol.java:344) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.refer(DubboProtocol.java:326) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:77) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:100) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:59) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.spring.boot.DubboConsumerAutoConfiguration$1.postProcessBeforeInitialization(DubboConsumerAutoConfiguration.java:89) ~[dubbo-spring-boot-starter-2.0.0.jar:na]
    ... 18 common frames omitted
Caused by: com.alibaba.dubbo.remoting.RemotingException: client(url: dubbo://127.0.0.1:20880/com.xxx.ServiceAPI?application=the-consumer&codec=dubbo&dubbo=2.6.0&heartbeat=60000&interface=com.xxx.ServiceAPI&methods=sendMessage&pid=4435&register.ip=192.168.124.4&side=consumer&timestamp=1564975808256) failed to connect to server /127.0.0.1:20880, error message is:Connection refused
    at com.alibaba.dubbo.remoting.transport.netty.NettyClient.doConnect(NettyClient.java:122) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:266) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.remoting.transport.AbstractClient.<init>(AbstractClient.java:89) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.remoting.transport.netty.NettyClient.<init>(NettyClient.java:59) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.connect(NettyTransporter.java:35) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.remoting.Transporter$Adaptive.connect(Transporter$Adaptive.java) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.remoting.Transporters.connect(Transporters.java:75) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.connect(HeaderExchanger.java:38) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.remoting.exchange.Exchangers.connect(Exchangers.java:109) ~[dubbo-2.6.0.jar:2.6.0]
    at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initClient(DubboProtocol.java:401) ~[dubbo-2.6.0.jar:2.6.0]
    ... 29 common frames omitted
Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_131]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_131]
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:384) ~[netty-3.2.5.Final.jar:na]
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:354) ~[netty-3.2.5.Final.jar:na]
    at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:276) ~[netty-3.2.5.Final.jar:na]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_131]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_131]
    at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_131]

没有配置 ZooKeeper,纯粹是 Dubbo 的问题。