Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12135

WS plugin completely breaks startup if port is in use

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • websocket-plugin
    • None

      This plugin seems to complete break the startup of Jenkins if the websockets port is in use

      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
      

            Unassigned Unassigned
            rtyler R. Tyler Croy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: