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

推荐订阅源

T
Threat Research - Cisco Blogs
S
Securelist
H
Heimdal Security Blog
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
Spread Privacy
Spread Privacy
Cyberwarzone
Cyberwarzone
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
人人都是产品经理
人人都是产品经理
C
Cisco Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Engineering at Meta
Engineering at Meta
Project Zero
Project Zero
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
O
OpenAI News
P
Proofpoint News Feed
Google Online Security Blog
Google Online Security Blog
Recent Announcements
Recent Announcements
Hacker News: Ask HN
Hacker News: Ask HN
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
G
GRAHAM CLULEY
Apple Machine Learning Research
Apple Machine Learning Research
TaoSecurity Blog
TaoSecurity Blog
S
Security @ Cisco Blogs
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Jina AI
Jina AI
S
Secure Thoughts
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 最新话题
T
Tenable Blog
Latest news
Latest news
I
InfoQ

2019

写给 2019 年的告别辞(矫情向) 今年似乎还没看见有晒 Gayhub 的 Contributions 和代码行数的 - V2EX 新年的最后一天,各位有什么要说的吗? - V2EX 所以 20 世纪 10 年代最后一天,大家又给自己重新立了啥 Flog 吗? - V2EX 大家来用自己的专业/行业的语言形容下自己的 2019 吧 四个字总结 2019,四个字瞭望 2020 - V2EX 年底了,有没有讨厌开年会的? 年底了,来一起盘点一下今年互联网的新变化吧? 很难相信 2020 年就快到了...2019 年这一年大家过得怎么样? - V2EX 分享一下 2020 春运火车票预售时间表,又要准备抢票了 - V2EX 生日快乐,人民万岁! - V2EX 十一回家没有票 - V2EX 开发双周报 7 月 16 日-8 月 5 日 - V2EX itunes 备份必须要设置密码吗? 为什么 OneDrive 中的文件占用空间小于文件大小? 上海垃圾分类了,去上海捡瓶子会赚钱吗? - V2EX 十万用户的后台,应该选择什么级别的服务器 - V2EX laravel 中是否使用 repository? - V2EX 想做个网站, 有接活的吗? - V2EX 发现了一个充值漏洞你们会怎么折腾.... - V2EX 想知道大家上班会划水么? - V2EX 就没有一个人觉得笔记本电脑下面的键盘鸡肋么,尤其对于超极本而言,反正都要外接自己键盘的。 - V2EX 康云科技 陪您看世界 杭州西湖区租房 - V2EX 有没有用过的解答一下, uni-app 和 mpvue 的区别 iPhone 系统的问题...去哪反馈 - V2EX 老司机们,求带。最近准备换电脑,推荐一下,初步准备 联想 Y7000 - V2EX 共享通讯,一个盒子+一部手机就能搞定 - V2EX facebook crawler - V2EX VMware 的产品在大家公司内部用的多吗? - V2EX Java 高中毕业 自考专科中 怎么办啊 - V2EX 刚又薅了一个校园卡, 300 打两年,无限流量 - V2EX 我怎么能用鸭鸭 go 了啊? - V2EX 大家是怎么处理苹果支付,退款问题的? - V2EX 请问有没有可以逆向解析的模板引擎 - V2EX 17 年底我也被朋友怂恿参演了一部电影 OAQ - V2EX 今年这天气这是咋了 - V2EX 出售朝阳区来广营诚盈中心 2 楼伴糖健身卡 - V2EX
Spring Boot 第一次配置 Dubbo 就报错,不知道怎么解决 - V2EX
JYChiu · 2019-08-05 · via 2019

这是一个创建于 2505 天前的主题,其中的信息可能已经有所发展或是发生改变。

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 的问题。

第 1 条附言  ·  2019 年 8 月 5 日

对不起,因为启动 Consumer 的时候 Provider 关掉了,无视我吧😂