1. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brandServiceImpl' defined in file [G:\idjavacode\pyg_qingmu\pygqingmuparent\pyg_qingmu_service_sellergoods\target\pyg_qingmu_service_sellergoods\WEB-INF\classes\com\qingmu\core\service\BrandServiceImpl.class]: Initialization of bean failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://10.254.1.196:20881/com.qingmu.core.service.BrandService?anyhost=true&application=pyg_qingmu_service_sellergoods&channel.readonly.sent=true&codec=dubbo&dubbo=2.8.4&generic=false&heartbeat=60000&interface=com.qingmu.core.service.BrandService&methods=add,findById,update,findPage,findAll&pid=163296&revision=1.0-SNAPSHOT&side=provider&timestamp=1554707789890) Failed to bind NettyServer on /10.254.1.196:20881, cause: Failed to bind to: /0.0.0.0:20881
  2. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
  3. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
  4. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  5. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  6. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  7. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  8. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
  9. 08-Apr-2019 15:16:30.402 严重 [RMI TCP Connection(6)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
  10. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
  11. 08-Apr-2019 15:16:30.403 严重 [RMI TCP Connection(6)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
  12. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
  13. at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
  14. at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
  15. at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
  16. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792)
  17. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
  18. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  19. at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
  20. at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
  21. at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
  22. at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1736)
  23. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  25. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  26. at java.lang.reflect.Method.invoke(Method.java:498)
  27. at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
  28. at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
  29. at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
  30. at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:483)
  31. at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:432)
  32. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  33. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  34. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  35. at java.lang.reflect.Method.invoke(Method.java:498)
  36. at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
  37. at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
  38. at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
  39. at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
  40. at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
  41. at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
  42. at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
  43. at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
  44. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  45. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  46. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  47. at java.lang.reflect.Method.invoke(Method.java:498)
  48. at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:361)
  49. at sun.rmi.transport.Transport$1.run(Transport.java:200)
  50. at sun.rmi.transport.Transport$1.run(Transport.java:197)
  51. at java.security.AccessController.doPrivileged(Native Method)
  52. at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
  53. at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
  54. at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
  55. at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
  56. at java.security.AccessController.doPrivileged(Native Method)
  57. at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
  58. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  59. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  60. at java.lang.Thread.run(Thread.java:748)
  61. Caused by: com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://10.254.1.196:20881/com.qingmu.core.service.BrandService?anyhost=true&application=pyg_qingmu_service_sellergoods&channel.readonly.sent=true&codec=dubbo&dubbo=2.8.4&generic=false&heartbeat=60000&interface=com.qingmu.core.service.BrandService&methods=add,findById,update,findPage,findAll&pid=163296&revision=1.0-SNAPSHOT&side=provider&timestamp=1554707789890) Failed to bind NettyServer on /10.254.1.196:20881, cause: Failed to bind to: /0.0.0.0:20881
  62. at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:331)
  63. 08-Apr-2019 15:16:30.426 严重 [RMI TCP Connection(6)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@69f15888]) and a value of type [java.lang.Class] (value [class com.qingmu.core.service.BrandServiceImpl]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
  64. at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:308)
  65. at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:258)
  66. at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:55)
  67. at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56)
  68. at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)
  69. at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:153)
  70. at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:107)
  71. at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53)
  72. at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)
  73. at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)
  74. at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:489)
  75. at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:285)
  76. at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:246)
  77. at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:145)
  78. at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessAfterInitialization(AnnotationBean.java:202)
  79. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:422)
  80. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1583)
  81. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
  82. ... 56 more
  83. Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /10.254.1.196:20881, cause: Failed to bind to: /0.0.0.0:20881
  84. at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:73)
  85. at com.alibaba.dubbo.remoting.transport.netty.NettyServer.<init>(NettyServer.java:63)
  86. at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:33)
  87. at com.alibaba.dubbo.remoting.Transporter$Adpative.bind(Transporter$Adpative.java)
  88. at com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:48)
  89. at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:41)
  90. at com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:63)
  91. at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:329)
  92. ... 74 more
  93. Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:20881
  94. at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272)
  95. at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:94)
  96. at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:68)
  97. ... 81 more
  98. Caused by: java.net.BindException: Address already in use: bind
  99. at sun.nio.ch.Net.bind0(Native Method)
  100. at sun.nio.ch.Net.bind(Net.java:433)
  101. at sun.nio.ch.Net.bind(Net.java:425)
  102. at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
  103. at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
  104. at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(NioServerBoss.java:193)
  105. at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:366)
  106. at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:290)
  107. at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.java:42)
  108. ... 3 more

在启动tomcat的时候,两个tomcat进行同时启动时候,如果重新发布这个项目,就会出现这样的异常,有点类似于端口被占用的异常,只要把两个tomcat全部关闭,然后重新启动就会回复.

Caused by: java.net.BindException: Address already in use: bind的更多相关文章

  1. 启动springboot出现错误 Caused by: java.net.BindException: Address already in use: bind

    如果运行过程中出现端口被占用 抛出了这个异常 首先可以在cmd中调出命令窗口然后 执行命令 netstat -ano  可以查看所有活动的连接  找到你被占用的端口 可以看到我被占用的端口的进程是 4 ...

  2. Jenkins启动时报错:java.net.BindException: Address already in use: bind 解决方法

    下载jenkins.war包后,进入Jenkins.war包目录下,运行java -jar jenkins.war时报端口被占用的错误:java.net.BindException: Address ...

  3. java.net.BindException: Address already in use: bind

    环境:jxse-2.7, netty-3.6.6.Final 现象:每次执行都抛出以下异常 八月 08, 2013 8:45:19 下午 net.jxta.logging.Logging logChe ...

  4. 解决 java.net.BindException: Address already in use (Bind failed)

    这是因为tomcat未正确关闭导致的端口占用问题 找到报错中被占用的端口kill掉进程即可,一般是8080,也有下面这种8005的 11-Mar-2019 14:46:12.405 SEVERE [m ...

  5. springboot 出现异常 java.net.BindException: Address already in use: bind

    java.net.BindException: Address already in use: bind

  6. 解决springboot 出现异常: java.net.BindException: Address already in use: bind

    解决springboot 出现异常: java.net.BindException: Address already in use: bind 这是引文在启动springboot 的时候,没有关闭端口 ...

  7. IDEA启动报错-java.net.BindException: Address already in use: bind

    启动IDEA报错日志如下: Internal error. Please refer to http://jb.gg/ide/critical-startup-errors java.net.Bind ...

  8. IDEA错误:Failed to start end point associated with ProtocolHandler [http-nio-9999] java.net.BindException: Address already in use: bind

    日志显示进程端口已被占用,首先需要的是查询什么进程占用了当前的9999端口. 1.win+R输入cmd进入命令界面: 2.输入命令  netstat -ano|findstr "端口号&qu ...

  9. 端口占用问题:java.net.BindException: Address already in use: bind

    解决方法 方法一:换一个端口 若仍然想要使用该端口,则可以将占用该端口的进程杀死即可. 方法二:杀死占用该端口的进程 若仍然想要使用该端口,则可以将占用该端口的进程杀死即可 查找端口被占用的进程id ...

随机推荐

  1. C语言数据类型运算法则

    整形与整形运算得到的还是整形 printf("%d\n",1/3); //0 printf("%d\n",1+2); //3 整形与浮点型运算得到浮点型数据 p ...

  2. spark on yarn任务提交缓慢解决

    1.为什么要让运行时Jar可以从yarn端访问spark2以后,原有lib目录下的大JAR包被分散成多个小JAR包,原来的spark-assembly-*.jar已经不存在 每一次我们运行的时候,如果 ...

  3. 解决Linux 下 root用户删除文件提示:Operation not permitted

    问题描述 用最高权限rm文件,居然报错Operation not permitted.查看权限也没有问题.可想而知有可能文件被保护了.用命令lsattr检查一下就知道. [root@linux roo ...

  4. 乐固加固后windows下实现给apk签名

    遇到了这样一个问题:我们已经在centos下签名生成好的apk,拿到腾讯乐固上加固以后,签名没有了,就需要重新签名,我乐滋滋的想,既然原来是在centos下签名的,那再去centos上签名一次就好了, ...

  5. 使用vscode编译sass

    如果你想通过命令行来编译的话 可以按照 https://www.sass.hk/ 前往这里按步骤安装,但是在安装淘宝镜像的时候会有问题,安装不成功,于是我就使用vscode来编译sass 第一步,再v ...

  6. sqli-labs(十)(过滤注释符)

    第二十三关: 这关还是一个GET型.字符串.单引符号.的有报错的sql注入,输入?id=1'  ,页面会报错 我们继续按照之前的套路来,先输入?id=1' or '1'='1 页面正常显示,说明这个地 ...

  7. VS2010 正在创建“Debug\test2.unsuccessfulbuild”,因为已指定“AlwaysCreate”。

    问题一:VS2010  正在创建“Debug\test2.unsuccessfulbuild”,因为已指定“AlwaysCreate”. 方法解决: The relevant setting is i ...

  8. Vue+webpack项目中实现跨域的http请求

    目前Vue项目中对json数据的请求一般使用两个插件vue-resource和axios, 但vue-resource已经不再维护, 而axios是官方推荐的且npm下载量已经170多万,github ...

  9. maven下载和安装

    注意:安装Maven3之前需要安装jdk1.7以上版本,下面介绍的是最新版Maven官网下载并安装, 每个人使用的编辑器不同,在这里我就不介绍了,可以去网上查对应编辑器Maven配置方法. 第一步,官 ...

  10. 谷歌Cookies无法写入

    写Cookies页面加这个ok: Response.AddHeader("P3P", "CP=CAO PSA OUR");