java.lang.Exception

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We've recently upgraded to Hudson ver. 1.358 and upgraded our Hudson plugins (CheckStyle, FindBugs, Emma, etc). Since taking the upgrades, we're noticing that slave agents are terminating after building our 'code checking' project, which consists of: - CheckStyle (now on 3.6) - FindBugs (now on 4.8) - Emma coverage reports (now on 1.20) We've narrowed the problem down to the Emma plugin; the Hudson slave does not terminate when I deactivate the "Record Emma coverage report" step in my Hudson project. When I re-enable the Emma coverage report step, the Hudson slave starts dying again. Slave agents are happily building our other builds (junit tests, end-2-end tests). Here's some logging below: (please let me know, if you need more details) ============================== When this happens, his is the logging we see on the: 1) Hudson server log file: 17-May-2010 12:49:29 hudson.TcpSlaveAgentListener$ConnectionHandler run INFO: Accepted connection #36 from /xx.xx.xx.xx:38048 17-May-2010 12:49:29 hudson.TcpSlaveAgentListener$ConnectionHandler error WARNING: Connection #36 is aborted: cislave3 is already connected to this master. Rejecting this connection. 2) Hudson slave agent log file: 17-May-2010 12:49:19 hudson.remoting.Engine$2 onDead INFO: Ping failed. Terminating the socket. 17-May-2010 12:49:19 hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel channel java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:162) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:856) 17-May-2010 12:49:19 hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated 17-May-2010 12:49:29 hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://ccmain.xx.com:8080/] 17-May-2010 12:49:29 hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to ccmain.xx.com:44477 17-May-2010 12:49:29 hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking 17-May-2010 12:49:29 hudson.remoting.jnlp.Main$CuiListener error SEVERE: The server rejected the connection: cislave3 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: cislave3 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.run(Engine.java:191)
    via by saipatel,
  • We've recently upgraded to Hudson ver. 1.358 and upgraded our Hudson plugins (CheckStyle, FindBugs, Emma, etc). Since taking the upgrades, we're noticing that slave agents are terminating after building our 'code checking' project, which consists of: - CheckStyle (now on 3.6) - FindBugs (now on 4.8) - Emma coverage reports (now on 1.20) We've narrowed the problem down to the Emma plugin; the Hudson slave does not terminate when I deactivate the "Record Emma coverage report" step in my Hudson project. When I re-enable the Emma coverage report step, the Hudson slave starts dying again. Slave agents are happily building our other builds (junit tests, end-2-end tests). Here's some logging below: (please let me know, if you need more details) ============================== When this happens, his is the logging we see on the: 1) Hudson server log file: 17-May-2010 12:49:29 hudson.TcpSlaveAgentListener$ConnectionHandler run INFO: Accepted connection #36 from /xx.xx.xx.xx:38048 17-May-2010 12:49:29 hudson.TcpSlaveAgentListener$ConnectionHandler error WARNING: Connection #36 is aborted: cislave3 is already connected to this master. Rejecting this connection. 2) Hudson slave agent log file: 17-May-2010 12:49:19 hudson.remoting.Engine$2 onDead INFO: Ping failed. Terminating the socket. 17-May-2010 12:49:19 hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel channel java.net.SocketException: Socket closed at java.net.SocketInputStream.read(SocketInputStream.java:162) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2249) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2542) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2552) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Channel$ReaderThread.run(Channel.java:856) 17-May-2010 12:49:19 hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated 17-May-2010 12:49:29 hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://ccmain.xx.com:8080/] 17-May-2010 12:49:29 hudson.remoting.jnlp.Main$CuiListener status INFO: Connecting to ccmain.xx.com:44477 17-May-2010 12:49:29 hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking 17-May-2010 12:49:29 hudson.remoting.jnlp.Main$CuiListener error SEVERE: The server rejected the connection: cislave3 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: cislave3 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.run(Engine.java:191)
    via by saipatel,
  • [20:02] <roxspring> grrr - just noticed that the hudson has put the slaves offline [20:02] <roxspring> am getting this sort of thing an awful lot lately [20:07] <roxspring> typical slave logs go like this: (see below) [20:08] <roxspring> then the slave services won't start up "Error 1067: The process terminated unexpectedly" [20:09] <roxspring> seemingly another rejected connection [20:11] <@kohsuke> I know this issue [20:11] <@kohsuke> It's because Hudson thinks the slave is still connected even though it's not any more [20:11] <@kohsuke> We need to fix this [20:11] <@kohsuke> roxspring: if you can file a ticket, that would be great. {noformat} 15-Mar-2010 14:35:01 hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel channel java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Channel$ReaderThread.run(Channel.java:856) 15-Mar-2010 14:35:01 hudson.remoting.Request$2 run SEVERE: Failed to send back a reply java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.Channel.send(Channel.java:417) at hudson.remoting.Request$2.run(Request.java:282) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) 15-Mar-2010 14:35:01 hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated {noformat} then the server starts up again {noformat} 15-Mar-2010 14:35:51 hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking 15-Mar-2010 14:35:51 hudson.remoting.jnlp.Main$CuiListener status INFO: Connected 15-Mar-2010 14:35:52 com.youdevise.hudson.slavestatus.SlaveListener call INFO: Slave-status listener starting 15-Mar-2010 14:35:52 com.youdevise.hudson.slavestatus.SlaveListener$1 run SEVERE: Could not listen on port java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at com.youdevise.hudson.slavestatus.SocketHTTPListener.waitForConnection(SlaveListener.java:129) at com.youdevise.hudson.slavestatus.SlaveListener$1.run(SlaveListener.java:63) at com.youdevise.hudson.slavestatus.Daemon.go(Daemon.java:16) at com.youdevise.hudson.slavestatus.SlaveListener.call(SlaveListener.java:83) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) 17-Mar-2010 16:14:42 hudson.remoting.jnlp.Main$CuiListener <init> INFO: Hudson agent is running in headless mode. {noformat} Then when connecting... {noformat} 17-Mar-2010 16:14:42 hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking 17-Mar-2010 16:14:42 hudson.remoting.jnlp.Main$CuiListener error SEVERE: The server rejected the connection: hb-slave-trunk1 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: hb-slave-trunk1 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.run(Engine.java:191) {noformat}
    via by roxspring,
  • [20:02] <roxspring> grrr - just noticed that the hudson has put the slaves offline [20:02] <roxspring> am getting this sort of thing an awful lot lately [20:07] <roxspring> typical slave logs go like this: (see below) [20:08] <roxspring> then the slave services won't start up "Error 1067: The process terminated unexpectedly" [20:09] <roxspring> seemingly another rejected connection [20:11] <@kohsuke> I know this issue [20:11] <@kohsuke> It's because Hudson thinks the slave is still connected even though it's not any more [20:11] <@kohsuke> We need to fix this [20:11] <@kohsuke> roxspring: if you can file a ticket, that would be great. {noformat} 15-Mar-2010 14:35:01 hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel channel java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Channel$ReaderThread.run(Channel.java:856) 15-Mar-2010 14:35:01 hudson.remoting.Request$2 run SEVERE: Failed to send back a reply java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.Channel.send(Channel.java:417) at hudson.remoting.Request$2.run(Request.java:282) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) 15-Mar-2010 14:35:01 hudson.remoting.jnlp.Main$CuiListener status INFO: Terminated {noformat} then the server starts up again {noformat} 15-Mar-2010 14:35:51 hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking 15-Mar-2010 14:35:51 hudson.remoting.jnlp.Main$CuiListener status INFO: Connected 15-Mar-2010 14:35:52 com.youdevise.hudson.slavestatus.SlaveListener call INFO: Slave-status listener starting 15-Mar-2010 14:35:52 com.youdevise.hudson.slavestatus.SlaveListener$1 run SEVERE: Could not listen on port java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at java.net.ServerSocket.<init>(Unknown Source) at com.youdevise.hudson.slavestatus.SocketHTTPListener.waitForConnection(SlaveListener.java:129) at com.youdevise.hudson.slavestatus.SlaveListener$1.run(SlaveListener.java:63) at com.youdevise.hudson.slavestatus.Daemon.go(Daemon.java:16) at com.youdevise.hudson.slavestatus.SlaveListener.call(SlaveListener.java:83) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:58) at java.lang.Thread.run(Unknown Source) 17-Mar-2010 16:14:42 hudson.remoting.jnlp.Main$CuiListener <init> INFO: Hudson agent is running in headless mode. {noformat} Then when connecting... {noformat} 17-Mar-2010 16:14:42 hudson.remoting.jnlp.Main$CuiListener status INFO: Handshaking 17-Mar-2010 16:14:42 hudson.remoting.jnlp.Main$CuiListener error SEVERE: The server rejected the connection: hb-slave-trunk1 is already connected to this master. Rejecting this connection. java.lang.Exception: The server rejected the connection: hb-slave-trunk1 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.run(Engine.java:191) {noformat}
    via by roxspring,
  • GitHub comment 18#259745395
    via GitHub by rakesh-roshan
    ,
  • Jenkins CI server user discussion ()
    via by Unknown author,
    • java.lang.Exception: The server rejected the connection: cislave3 is already connected to this master. Rejecting this connection. at hudson.remoting.Engine.run(Engine.java:191)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,