DUBBO启动报错找不到服务

ERROR 10:16:41,178 AbstractClient: - [DUBBO] Failed to start NettyClient caedmon-PC/192.168.0.234 connect to the server /60.191.124.236:21890 (check == false, ignore and retry later!), cause: client(url: dubbo://60.191.124.236:21890/com.sendinfo.ebiz3.account.server.UserServer?anyhost=true&application=wuzhen-b2c-provider&check=false&codec=dubbo&default.check=false&default.retries=0&default.timeout=20000&dubbo=2.5.3&heartbeat=60000&interface=com.sendinfo.ebiz3.account.server.UserServer&methods=queryConsumerPointVo,updateAccount,queryConsumer,updateLogin,loginOut,getLogin,regConsumer,getAccount,queryLogin,updateConsumer&pid=6212&side=consumer&timeout=5000&timestamp=1425544252633) failed to connect to server /60.191.124.236:21890 client-side timeout 3000ms (elapsed: 3003ms) from netty client 192.168.0.234 using dubbo version 2.5.3, dubbo version: 2.5.3, current host: 192.168.0.234
com.alibaba.dubbo.remoting.RemotingException: client(url: dubbo://60.191.124.236:21890/com.sendinfo.ebiz3.account.server.UserServer?anyhost=true&application=wuzhen-b2c-provider&check=false&codec=dubbo&default.check=false&default.retries=0&default.timeout=20000&dubbo=2.5.3&heartbeat=60000&interface=com.sendinfo.ebiz3.account.server.UserServer&methods=queryConsumerPointVo,updateAccount,queryConsumer,updateLogin,loginOut,getLogin,regConsumer,getAccount,queryLogin,updateConsumer&pid=6212&side=consumer&timeout=5000&timestamp=1425544252633) failed to connect to server /60.191.124.236:21890 client-side timeout 3000ms (elapsed: 3003ms) from netty client 192.168.0.234 using dubbo version 2.5.3
at com.alibaba.dubbo.remoting.transport.netty.NettyClient.doConnect(NettyClient.java:127)
at com.alibaba.dubbo.remoting.transport.AbstractClient.connect(AbstractClient.java:280)
at com.alibaba.dubbo.remoting.transport.AbstractClient.(AbstractClient.java:103)
at com.alibaba.dubbo.remoting.transport.netty.NettyClient.(NettyClient.java:61)
at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.connect(NettyTransporter.java:37)
at com.alibaba.dubbo.remoting.Transporter$Adpative.connect(Transporter$Adpative.java)
at com.alibaba.dubbo.remoting.Transporters.connect(Transporters.java:67)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.connect(HeaderExchanger.java:37)
at com.alibaba.dubbo.remoting.exchange.Exchangers.connect(Exchangers.java:102)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initClient(DubboProtocol.java:378)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getSharedClient(DubboProtocol.java:344)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.getClients(DubboProtocol.java:321)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.refer(DubboProtocol.java:303)
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:65)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:62)
at com.alibaba.dubbo.rpc.Protocol$Adpative.refer(Protocol$Adpative.java)
at com.alibaba.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:395)
at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:224)
at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:195)
at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:449)
at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:273)
at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:259)
at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.access$400(ZookeeperRegistry.java:45)
at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry$3.childChanged(ZookeeperRegistry.java:159)
at com.alibaba.dubbo.remoting.zookeeper.zkclient.ZkclientZookeeperClient$2.handleChildChange(ZkclientZookeeperClient.java:82)
at org.I0Itec.zkclient.ZkClient$8.run(ZkClient.java:583)
at org.I0Itec.zkclient.ZkEventThread.run(ZkEventThread.java:71)

8个回答

IP是否是你本机IP,可能是因为找错IP了;
如果是这个原因的话将host绑定本机IP就OK
参考:http://www.iteye.com/news/23850

绑定本机IP,我的做法:在provider xml文件中加入本机host

 <!-- 用dubbo协议在20880端口暴露服务 -->  
<dubbo:protocol name="dubbo" host="10.3.41.6" port="20880" />  

参考:http://dubbo.io/User+Guide-zh.htm#UserGuide-zh-%E4%B8%BB%E6%9C%BA%E7%BB%91%E5%AE%9A

zhouxue12366
笨笨的_ 请教一下,如果这样绑定了host的话;那么集群的时候怎么处理呢?如果有100台不是要绑定100台了?会很蛋疼
一年多之前 回复

我也遇到了,不厚道的楼主,直接跑路

找到问题了,服务器的dns设置不对

service network restart

可以注册到服务了

但是服务器ping不通外网了​

楼主问题解决了吗?我也遇到这个问题了

楼主咋解决的?我也遇到了这个问题

关键点:Failed to start NettyClient

是192.168.0.234 链接60.191.124.236:21890时失败,检查网络与防火墙,保证本地192.168.0.234 telnet 60.191.124.236 21890可以成功。

具体分析下网络问题。

在消费者配置文件中增加这个配置

我的是在自己电脑上运行的,改成host:127.0.0.1就好了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Dubbo服务启动报错
最近在优化Dubbo项目过程中遇到了一下问题,在启动dubbo时报一下错误 Linux环境 + Dubbo 2.5.3 java.lang.IllegalArgumentException: Invalid registry store file /pub/.dubbo/dubbo-registry-224.5.6.7.cache, cause: Failed to create dire
Dubbo启动报错
异常关键字: ERROR com.alibaba.dubbo.remoting.transport.AbstractClient - [DUBBO] Failed to start NettyClient com.alibaba.dubbo.remoting.RemotingException: client at com.alibaba.dubbo.remoting.transport.n...
dubbo启动报错
首先说明我的环境 两台电脑都是windows 环境 dubbo服务提供者一台电脑 zookeeper 是在另一台电脑启动,两台电脑都在局域网内,防火墙都已经关闭,如果两者部署在通一台电脑是没有问题的,下面是详细的报错信息:rn2016-08-06 16:18:09 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader - Context initialization failedrncom.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.1.113:20881/com。。。8769) Failed to bind NettyServer on /192.168.1.113:20881, cause: Failed to bind to: /192.168.1.113:20881rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:289)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:266)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:253)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:55)rn at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56)rn at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)rn at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:153)rn at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:107)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53)rn at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)rn at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)rn at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:485)rn at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281)rn at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242)rn at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143)rn at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)rn at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /192.168.1.113:20881, cause: Failed to bind to: /192.168.1.113:20881rn at com.alibaba.dubbo.remoting.transport.AbstractServer.(AbstractServer.java:72)rn at com.alibaba.dubbo.remoting.transport.netty.NettyServer.(NettyServer.java:63)rn at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:33)rn at com.alibaba.dubbo.remoting.Transporter$Adpative.bind(Transporter$Adpative.java)rn at com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:48)rn at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:41)rn at com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:63)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:287)rn ... 31 common frames omittedrnCaused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /192.168.1.113:20881rn at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)rn at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:94)rn at com.alibaba.dubbo.remoting.transport.AbstractServer.(AbstractServer.java:67)rn ... 38 common frames omittedrnCaused by: java.net.BindException: Cannot assign requested address: bindrn at sun.nio.ch.Net.bind0(Native Method)rn at sun.nio.ch.Net.bind(Unknown Source)rn at sun.nio.ch.Net.bind(Unknown Source)rn at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)rn at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)rn at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)rn at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366)rn at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290)rn at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)rn ... 3 common frames omittedrn八月 06, 2016 4:18:09 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrncom.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.1.113:20881/com.。。。8769) Failed to bind NettyServer on /192.168.1.113:20881, cause: Failed to bind to: /192.168.1.113:20881rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:289)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:266)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:253)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:55)rn at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56)rn at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)rn at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:153)rn at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:107)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53)rn at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)rn at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)rn at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:485)rn at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281)rn at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242)rn at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143)rn at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109)rn at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)rn at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)rn at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:41rn
解决dubbo启动报错的问题
解决dubbo启动报错,加载失败问题。亲测此文件可以使用
dubbo服务提供者启动报错
log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).rnlog4j:WARN Please initialize the log4j system properly.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rnException in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.dubbo.demo.DemoService': Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerErrorrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1101)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)rn at com.alibaba.dubbo.demo.provider.server_main.main(server_main.java:19)rnCaused by: java.lang.ExceptionInInitializerErrorrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:526)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1094)rn ... 13 morernCaused by: java.lang.IllegalStateException: fail to create adaptive instance: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/wanyanyangwei/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:459)rn at com.alibaba.dubbo.config.ServiceConfig.(ServiceConfig.java:60)rn ... 20 morernCaused by: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/wanyanyangwei/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:723)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)rn ... 21 morernCaused by: java.lang.IllegalStateException: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/wanyanyangwei/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:685)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadExtensionClasses(ExtensionLoader.java:591)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtensionClasses(ExtensionLoader.java:567)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:728)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:738)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:732)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)rn ... 22 morernCaused by: java.lang.NoClassDefFoundError: javassist/ClassPathrn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:270)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:627)rn ... 30 morernCaused by: java.lang.ClassNotFoundException: javassist.ClassPathrn at java.net.URLClassLoader$1.run(URLClassLoader.java:366)rn at java.net.URLClassLoader$1.run(URLClassLoader.java:355)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(URLClassLoader.java:354)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:425)rn at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:358)rn ... 33 morern
Dubbo消费者启动报错
报错如下:172.16.238.68是我的本机ip [DUBBO] Failed to start NettyClient TS20160418002/172.16.234.102 connect to the server /172.16.238.68:20880 (check == false, ignore and retry later!), cause: client(url:dubb...
# Dubbo项目启动报错(一)
Dubbo项目启动报错(一)Failed to load registry store file, cause: Malformed \uxxxx encoding.为了使得服务消费方能很好的接入服务提供方,减轻注册中心的压力,Dubbo 在本地缓存注册中心通过删除 C:\Users\xxxx.dubbo\dubbo-registry-127.0.0.1.cache
Dubbo 管理控制台启动报错
参考: 安装Dubbo管理控制台 2.5.4-SNAPSHOT dubbo admin error 下载dubbo-admin-2.5.4.war初次使用dubbo管理控制台,启动tomcat后,访问url报错,查看tomcat启动日志,发现以下错误:ERROR context.ContextLoader - Context initialization failed org.springfr
关于dubbo服务找不到provider的原因
最近看的一个项目是SSM+dubbo的,所以我就从网上找了些资料自己学了学,并且做出了一个demo 先搭建一下Zookeeper,这个比较简单 下载地址:http://www.apache.org/dyn/closer.cgi/zookeeper/ 下载完解压,一般没什么要改的 执行 zkServer 看一下dubboDubbo一个分布式、高性能、透明化的RPC服务框架,提供服务自动注册、
jenkins 启动报错找不到 java
在linux上安装好jenkins后,启动时报错: [root@VM_11_211_centos opt]# service jenkins start Starting Jenkins bash: /usr/bin/java: No such file or directory [FAILED] 报错原因: jenkins需要java环境来启动,默认会去指定的系统目录下找java执行文件,若找不...
emacs启动报错:找不到init.el
解决办法: 进入emacs/bin目录,cmd控制台执行命令:emacs --insecure 即可解决问题
gulp启动报错找不到模块
当从远程git clone一个JHipster项目,很多文件被.gitignore了。 执行mvn compile将后端依赖下载到本地仓库, 执行npm install,项目目录下出现node_modules文件夹,下载node依赖包 执行bower install,webapp目录下出现bower_components文件夹,下载前端依赖包 执行gulp install, 出现
java项目启动报错找不到jre
安装jdk1.8后,项目启动找不到jre; 之前找了很多博客,各种配置环境变量,还不小心把用户变量path删了; 如果你启动服务器报:找不jre的错误;可以试试下面的方法; 第一步打开窗口&amp;gt;首选项&amp;gt; 第二步:选择服务器,点击编辑 第三步:选择jre: 选择jdk1.8 点击完成;确定;刷新项目; 然后再启动服务器;成功;...
nginx启动报错找不到nginx.pid
nginx 新部署启动报错: nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 只需执行:/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 再重新启动即可
启动报错找不到指定路径
注释掉:
mysql启动报错,找不到mysql.sock
有一次打开网站时发现报错了,于是到网上去找原因,大部分都说是mysql数据库的问题,于是我就想启动一下mysql是否会报错,果然在启动的报错了。 说是找不到/tmp/mysql.sock了,我这才突然想起前些天把/tmp目录下的文件都给清空了,于是我又新建了一个mysql.sock的文件,把它的属主跟属组改成 mysql然后重新启动mysql之后就一切正常了。 还有一种可能是因为在my.cn
dubbo服务
Dubbo: 是什么:提供高性能透明化的远程服务调用方案。 提供的主要功能: 1.远程通信:基于长连接的NIO抽象封装。多种线程模型序列化。 2.集群容错:基于接口方法的透明远程调用,多协议支持,集群容错,地址路由,动态配置等集群支持。 3.自动发现:服务消费方能够动态寻找服务提供方,服务提供方能够平滑增加或者减少机器。 测试环境可以通过url绕过注册中心: 服务路由:随时配置服
nfs服务启动报错
# service nfs startrn启动 NFS 服务: [确定]rn关掉 NFS 配额:无法注册服务: RPC:认证错误; why = 客户证书太弱rnrpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).rn[失败]rn启动 NFS mountd:[确定]rn正在启动 RPC idmapd:[确定]rn正在启动 RPC idmapd:[确定]rn启动 NFS 守护进程:[确定]rnrnrnnfs启动失败 谁知道这个问题怎么解决呢 centos系统
tomcat服务启动报错
[img=https://img-bbs.csdn.net/upload/201801/05/1515111482_757665.png][/img]rn[img=https://img-bbs.csdn.net/upload/201801/05/1515111708_250865.png][/img]rnrnMyEclipse2014+tomcat6:新建一个java项目启动服务出错;代码只写了一行。rnrn
tomcat服务启动报错日志
查看 catalina log文件 信息: Deploying web application archive D:\apache-tomcat-7.0.37\webapps\cas.war 三月 04, 2013 11:21:11 上午 org.apache.catalina.core.StandardContext startInternal 严重: Error filterStar
oracle 监听服务启动报错
oracle 监听服务启动报错:本地计算机上的OracleOraDb11g home1TNSListener服务启动后停止。些服务在未由其他服务或程序使用时将自动停止。 解决方法:在环境变量中配置 ORACLE_HOME:D:\app\ningpw\product\11.1.0\db_2 ...
Linux之HTTP服务启动报错
实验环境:VMWARE11.0 Linux系统:RedHat6.8 如何解决在命令行执行命令:service httpd start后出现如下的错误提示: Starting httpd: httpd: apr_sockaddr_info_get() failed for My-Linux httpd: Could not reliably determine the server'
服务启动报错--未注入
查找报错注意从最上面报错开始查找,同事要注意并非第一行就是错误所在,需要循着第一个报错找到根源,在进行处理,像这个其实问题出在No qualifying bean of type [com.health.service.item.client.service.mtop.IPublishProductService] found for dependency: expected at least 1
sql服务启动报错什么原因!
[img=https://img-bbs.csdn.net/upload/201402/24/1393224494_824253.jpg][/img]拷贝的master库和日志覆盖原来的以后服务还是起不来,为什么?各位大大看看呢!谢谢!
struts2服务启动报错
[code=Java]2011-3-10 16:51:52 org.apache.catalina.core.AprLifecycleListener initrn信息: An older version 1.1.8 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends version greater then 1.1.10rn2011-3-10 16:51:52 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.8.rn2011-3-10 16:51:52 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].rn2011-3-10 16:51:53 org.apache.coyote.http11.Http11AprProtocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-3-10 16:51:53 org.apache.coyote.ajp.AjpAprProtocol initrn信息: Initializing Coyote AJP/1.3 on ajp-8009rn2011-3-10 16:51:53 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 2273 msrn2011-3-10 16:51:53 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-3-10 16:51:53 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.16rn2011-3-10 16:51:53 org.apache.catalina.startup.HostConfig deployWARrn信息: Deploying web application archive stuts20.warrn2011-3-10 16:51:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-default.xml]rn2011-3-10 16:51:58 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts-plugin.xml, skippingrn2011-3-10 16:51:58 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-plugin.xml]rn2011-3-10 16:51:58 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts.xml]rn2011-3-10 16:51:58 com.opensymphony.xwork2.util.logging.commons.CommonsLogger errorrn严重: Dispatcher initialization failedrnjava.lang.RuntimeException: java.lang.reflect.InvocationTargetExceptionrn at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)rn at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:431)rn at com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:207)rn at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)rn at com.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:93)rn at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:487)rn at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:484)rn at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)rn at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:252)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)rn at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:293)rn ... 42 morernCaused by: java.lang.ExceptionInInitializerErrorrn at com.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:85)rn ... 47 morernCaused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!rn at ognl.OgnlRuntime.(OgnlRuntime.java:165)rn ... 48 morernCaused by: java.lang.ClassNotFoundException: javassist.ClassPoolrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)rn at java.lang.ClassLoader.loadClassInternal(Unknown Source)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at ognl.OgnlRuntime.(OgnlRuntime.java:162)rn ... 48 morern2011-3-10 16:51:58 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.reflect.InvocationTargetException - Class: com.opensymphony.xwork2.inject.ContainerImpl$MethodInjectorrnFile: ContainerImpl.javarnMethod: injectrnLine: 295 - com/opensymphony/xwork2/inject/ContainerImpl.java:295:-1rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init[/code]rn
dubbo(二)发布dubbo服务
1.pom.xml中添加相关jar包 com.alibaba dubbo org.apache.zookeeper zookeeper com.github.sgroschupf zkclient
Dubbo视频教程_Dubbo服务的提供者
本套Dubbo课程结合动力节点多年教学经验,讲师的实战经验,从基础开始手把手式地详细讲解RPC概念,PRC在分布式应用的重要作用。Dubbo分布式服务框架的应用入门基础。传统应用到分布式以及微服务的转变思想。Dubbo协议的特点。Dubbo分布式服务的详细开发流程、Dubbo服务的实施部署,Zookeeper的服务管理等。
Dubbo之——Shell脚本维护Dubbo服务
1、部署目录规范 目的:便于管理,避免应用迁移时的命名冲突。 我定义的目录结构如下(linux)下: --home   ----------linux home目录下     --liuyazhuang    -------------用户信息         --dubboserver  ------------项目类型               --app  ----------
Dubbo注册dubbo服务的源码分析
在写代码之前先看一下dubbo的源码dubbo可以通过xml的方式或者注解的方式来配置注册到注册中心的服务下边先看看一xml的方式是怎么工作的,在dubbo的源码包目录下我们可以发现两个spring的文件,如下图↓ 让我们再看看最看是使用xml配置是的配置文件的头部部分,如下图↓ 当加载到这个配置文件的时候,就会加载到dubbo,再让我们看看spring.handlers这个文件,下边是
SuperMap 服务启动报错的解决办法
NULL 博文链接:https://millerrch.iteye.com/blog/1396479
Android Studio启动报错找不到JAVA_HOME.....找不到jvm
[img=https://img-bbs.csdn.net/upload/201506/24/1435075222_557286.png][/img]rn百度了好多方法,重新下载JDK,环境变量最后不能加;号,都不行,我是win8.1 64位专业版系统,到底怎么回事呢?之前配置的环境变量用eclipse敲代码是没有问题的。哪位大神的不报错把你的jdk给我,我装装再试试吧,会不会是我都下载错了?官网下载、软件管家下载都试过的。
dubbo 服务源码-暴露服务
ServiceConfig --&amp;gt;doExport() --&amp;gt;eportLocal() --&amp;gt;StubProxyFactory-getInvoker() --&amp;gt;JavaAssisProxyFactory-getInvoker() --&amp;gt;InJvmProxyProtocol --&amp;gt;ProtocolFilterWrapper--export() ...
dubbo的服务发布与服务引用
主要从源码分析的角度分析了服务发布与服务引用的流程,很清晰的描述的发布与引用的过程
dubbo服务与zookeeper服务注册中心
1.表现层和服务层是如何实现通信的 2.什么是dubbo 3.dubbo的作用 4.dubbo框架  4.1 节点角色说明:  4.2 调用关系说明: 5.dubbo在工程中的配置,即发布服务  5.1 服务的提供者端配置  5.2 服务的消费者端配置 6.dubbo监控中心的安装 7. 什么是zookeeper 8.zookeeper的作用 9.zookeeper的安装 10. 总结...
dubbo找不到dubbo.xsd报错
构建dubbo项目的时候会遇到: Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. - schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
oracle数据库,启动报错,找不到initorcl.ora文件
oracle数据库,启动报错,找不到initorcl.ora文件 大年初一,客户发信息说机房断电,所有系统需要重启,在启动oracle数据库的时候,突然就报错, ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file '/opt/oracle/product/d...
maven springMvc启动报错,找不到beans.xml
我的beans.xml是放在resource目录下的。rn然后web.xml的配置文件为:rnrn contextConfigLocationrn classpath:beans.xmlrn rnrn为什么启动tomcat的时候报错rnCaused by: java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not existrn找不到这个配置文件呢?
spring boot 启动报错,找不到DataSource
报错信息如下: 16:39:11.372 1653 [main] WARN o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext [AbstractApplicationContext.java:551] - Exception encountered during context initialization - cancellin...
tomcat10在linux下启动报错,找不到jre
今天买了阿里云服务器,就兴致冲冲部署开发环境。可是前面安装mysql蛮顺的,到了装tomcat的时候,启动后却报错了: 原因是我安装的jdk版本是10,.0.2,自己玩的吗,就用最新的去测试。 但是配置环境变量,我改的是/etc/profile,改动如下: JAVA_HOME=/usr/soft/java/jdk-10.0.2 JRE_HOME=$JAVA_HOME/jre PATH=$P...
tomcat无法启动报错找不到类
1、今天同事遇到个问题,eclipse启动tomcat时,老是报错java.lang.ClassNotFoundException: com.common.entrance.JsdzListener,意思是无法启动监听功能,这个问题给我费了好长时间才解决,今天记录一下,省着以后忘记2、首先报错内容如下二月 23, 2018 1:39:02 下午 org.apache.tomcat.util.dig...
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池