org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'endpoint' defined in URL [jar:file:/usr/local/manager/lib/manager.biz-4.2.13.jar!/spring/otter-manager-remote.xml]: Invocation of init method failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://127.0.0.1:1099/endpoint?channel.readonly.sent=true&codec=dubbo&connections=30&heartbeat=5000&iothreads=4&serialization=java&server=netty&threads=50) Failed to bind NettyServer on /127.0.0.1:1099, cause: Failed to bind to: /0.0.0.0:1099

GitHub | muyuren | 3 months ago
  1. 0

    otter运行几天后,关闭manager再启动报错

    GitHub | 3 months ago | muyuren
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'endpoint' defined in URL [jar:file:/usr/local/manager/lib/manager.biz-4.2.13.jar!/spring/otter-manager-remote.xml]: Invocation of init method failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://127.0.0.1:1099/endpoint?channel.readonly.sent=true&codec=dubbo&connections=30&heartbeat=5000&iothreads=4&serialization=java&server=netty&threads=50) Failed to bind NettyServer on /127.0.0.1:1099, cause: Failed to bind to: /0.0.0.0:1099
  2. 0

    Flume agents are not connecting on different machines

    Stack Overflow | 2 years ago | Laurel
    org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:4545
  3. 0

    This plugin seems to complete break the startup of Jenkins if the websockets port is in use :( {code} org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at jenkins.InitReactorRunner.run(InitReactorRunner.java:43) at jenkins.model.Jenkins.executeReactor(Jenkins.java:815) at jenkins.model.Jenkins.<init>(Jenkins.java:736) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:217) Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.InitializerFinder.invoke(InitializerFinder.java:124) at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$5.runTask(Jenkins.java:804) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120) ... 8 more Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:8081 at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303) at org.webbitserver.netty.NettyWebServer.start(NettyWebServer.java:141) at org.webbitserver.netty.NettyWebServer.start(NettyWebServer.java:36) at org.codefirst.jenkins.wsnotifier.WsServer.reset(WsServer.java:40) at org.codefirst.jenkins.wsnotifier.WsServer.init(WsServer.java:23) ... 13 more Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74) at org.jboss.netty.channel.Channels.bind(Channels.java:468) at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:200) at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348) at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176) at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85) at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142) at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90) at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282) ... 17 more {code}

    Jenkins JIRA | 5 years ago | R. Tyler Croy
    org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    We have another service running on 8081 on a jenkins-master. Enabling the Websocket Plugin leads to a crash after restart with the stack trace [1]. The config does not contain any entries for the plugin yet, so no manual change of the port is possible (without guessing the correct xml). Cheers, Igor [1] Stack trace on start: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at hudson.model.Hudson.executeReactor(Hudson.java:753) at hudson.model.Hudson.<init>(Hudson.java:667) at hudson.model.Hudson.<init>(Hudson.java:607) at hudson.WebAppMain$2.run(WebAppMain.java:215) Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException at hudson.init.InitializerFinder.invoke(InitializerFinder.java:114) at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:174) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at hudson.model.Hudson$4.runTask(Hudson.java:735) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at hudson.init.InitializerFinder.invoke(InitializerFinder.java:110) ... 8 more Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:8081 at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303) at org.webbitserver.netty.NettyWebServer.start(NettyWebServer.java:141) at org.webbitserver.netty.NettyWebServer.start(NettyWebServer.java:36) at org.codefirst.jenkins.wsnotifier.WsServer.reset(WsServer.java:40) at org.codefirst.jenkins.wsnotifier.WsServer.init(WsServer.java:23) ... 13 more Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100) at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74) at org.jboss.netty.channel.Channels.bind(Channels.java:468) at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:200) at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348) at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176) at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85) at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142) at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90) at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282) ... 17 more

    Jenkins JIRA | 5 years ago | Igor Lankin
    org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
  6. 0

    Tutorial to Build a FloodLight SDN OpenFlow Controller Module

    networkstatic.net | 5 months ago
    org.jboss.netty.channel.ChannelException: Failed to bind to: localhost/127.0.0.1:6642

  1. musketyr 1 times, last 6 days ago
  2. johnxfly 1 times, last 7 days ago
  3. kjhdofjosvs 1 times, last 2 weeks ago
  4. rlovtangen 2 times, last 7 days ago
  5. Nikolay Rybak 1 times, last 1 month ago
40 more registered users
55 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.BindException

    Address already in use

    at sun.nio.ch.Net.bind0()
  2. Java RT
    ServerSocketAdaptor.bind
    1. sun.nio.ch.Net.bind0(Native Method)[na:1.7.0_79]
    2. sun.nio.ch.Net.bind(Net.java:444)[na:1.7.0_79]
    3. sun.nio.ch.Net.bind(Net.java:436)[na:1.7.0_79]
    4. sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)[na:1.7.0_79]
    5. sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)[na:1.7.0_79]
    5 frames
  3. Netty
    ServerBootstrap.bind
    1. org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148)[netty-3.2.2.Final.jar:na]
    2. org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100)[netty-3.2.2.Final.jar:na]
    3. org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74)[netty-3.2.2.Final.jar:na]
    4. org.jboss.netty.channel.Channels.bind(Channels.java:468)[netty-3.2.2.Final.jar:na]
    5. org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:200)[netty-3.2.2.Final.jar:na]
    6. org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348)[netty-3.2.2.Final.jar:na]
    7. org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176)[netty-3.2.2.Final.jar:na]
    8. org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85)[netty-3.2.2.Final.jar:na]
    9. org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142)[netty-3.2.2.Final.jar:na]
    10. org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90)[netty-3.2.2.Final.jar:na]
    11. org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282)[netty-3.2.2.Final.jar:na]
    11 frames
  4. com.alibaba.dubbo
    DubboProtocol.export
    1. com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:94)[dubbo-2.5.3.jar:2.5.3]
    2. com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:67)[dubbo-2.5.3.jar:2.5.3]
    3. com.alibaba.dubbo.remoting.transport.netty.NettyServer.<init>(NettyServer.java:63)[dubbo-2.5.3.jar:2.5.3]
    4. com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:33)[dubbo-2.5.3.jar:2.5.3]
    5. com.alibaba.dubbo.remoting.Transporter$Adpative.bind(Transporter$Adpative.java)[na:2.5.3]
    6. com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:48)[dubbo-2.5.3.jar:2.5.3]
    7. com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:41)[dubbo-2.5.3.jar:2.5.3]
    8. com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:63)[dubbo-2.5.3.jar:2.5.3]
    9. com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:287)[dubbo-2.5.3.jar:2.5.3]
    10. com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:266)[dubbo-2.5.3.jar:2.5.3]
    11. com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:253)[dubbo-2.5.3.jar:2.5.3]
    11 frames
  5. communication module for otter
    DubboCommunicationEndpoint.initial
    1. com.alibaba.otter.shared.communication.core.impl.dubbo.DubboCommunicationEndpoint.initial(DubboCommunicationEndpoint.java:54)[shared.communication-4.2.13.jar:na]
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.7.0_79]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[na:1.7.0_79]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.7.0_79]
    4. java.lang.reflect.Method.invoke(Method.java:606)[na:1.7.0_79]
    4 frames
  7. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    6. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    7. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    8. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    9. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    10. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    10 frames
  8. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    2 frames
  9. Spring
    ContextLoader.initWebApplicationContext
    1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    2 frames
  10. com.alibaba.citrus
    WebxComponentsLoader.initWebApplicationContext
    1. com.alibaba.citrus.webx.context.WebxComponentsLoader.initWebApplicationContext(WebxComponentsLoader.java:117)[citrus-webx-all-3.2.0.jar:3.2.0]
    1 frame
  11. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)[spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    1 frame
  12. Jetty
    AbstractLifeCycle.start
    1. org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771)[jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910]
    2. org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:411)[jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910]
    3. org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763)[jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910]
    4. org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:247)[jetty-servlet-8.1.7.v20120910.jar:8.1.7.v20120910]
    5. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1238)[jetty-webapp-8.1.7.v20120910.jar:8.1.7.v20120910]
    6. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)[jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910]
    7. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480)[jetty-webapp-8.1.7.v20120910.jar:8.1.7.v20120910]
    8. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[jetty-util-8.1.7.v20120910.jar:8.1.7.v20120910]
    9. org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)[jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910]
    10. org.eclipse.jetty.server.Server.doStart(Server.java:277)[jetty-server-8.1.7.v20120910.jar:8.1.7.v20120910]
    11. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[jetty-util-8.1.7.v20120910.jar:8.1.7.v20120910]
    11 frames
  13. com.alibaba.otter
    OtterManagerLauncher.main
    1. com.alibaba.otter.manager.deployer.JettyEmbedServer.start(JettyEmbedServer.java:61)[manager.deployer-4.2.13.jar:na]
    2. com.alibaba.otter.manager.deployer.OtterManagerLauncher.main(OtterManagerLauncher.java:49)[manager.deployer-4.2.13.jar:na]
    2 frames